APL chars into HTML docs

APL-related discussions - a stream of APL consciousness.
Not sure where to start a discussion ? Here's the place to be
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
User avatar
kai
Posts: 141
Joined: Thu Jun 18, 2009 5:10 pm
Location: Hillesheim / Germany

Re: APL chars into HTML docs

Post by kai »

For those interested in the details:

http://archive.vector.org.uk/art10500400
User avatar
mario.sacco
Posts: 11
Joined: Fri Oct 25, 2013 7:42 pm
Location: Roma - Italia

Re: APL chars into HTML docs

Post by mario.sacco »

Morten|Dyalog wrote:... Bizarre, I could have sworn I just copy/pasted that from my APL session(?). Thanks, I have corrected the post.



Don't worry Morten. Computers are more and more like humans:, you ask them to do something, they say they will, and then they do something different! I was sure that you had done a copy-paste of your code!

Thanks in advance about LaTex question.
Mario Sacco
askom
Posts: 36
Joined: Fri Apr 09, 2010 7:22 pm

Re: APL chars into HTML docs

Post by askom »

mario.sacco wrote:At the moment I tried both Morten & Fiona code and both perform fine.

I know about HTML and XML but I cannot consider myself as an "expert". So my impression is that Fiona code doesn't force the reader to have APL385 font installed on her/his client. Am I right?

Thanks also to Brian, Dick and Roger for the tip&tricks to not irritate the HTML using its reserved words (that I'll try).

About Morten Code in rows 4 you wrote ⎕CREATE instead of ⎕NCREATE, a minor mistake just to avoid problems to non-expert Dyalog APL readers.

Solved this a second question ... :-) what about the use of APL385 characters into a LaTex doc?


With XeLateX it is not a problem anymore. In your document headings specify
\setmonofont{APL385} and use \verbatim environment for a beautiful APL text.

I also DO recommend you to look at pandoc http://johnmacfarlane.net/pandoc/
Using it you will easy create html/pdf/docx/tex/whatever from a markdown text files
with math, figures and APL.

/Sasha
askom
Posts: 36
Joined: Fri Apr 09, 2010 7:22 pm

Re: APL chars into HTML docs

Post by askom »

Did you try xelatex and/or pandoc? do you need any more help/genuineness?

/sasha

mario.sacco wrote:
Morten|Dyalog wrote:... Bizarre, I could have sworn I just copy/pasted that from my APL session(?). Thanks, I have corrected the post.



Don't worry Morten. Computers are more and more like humans:, you ask them to do something, they say they will, and then they do something different! I was sure that you had done a copy-paste of your code!

Thanks in advance about LaTex question.
User avatar
mario.sacco
Posts: 11
Joined: Fri Oct 25, 2013 7:42 pm
Location: Roma - Italia

Re: APL chars into HTML docs

Post by mario.sacco »

askom wrote:Did you try xelatex and/or pandoc? do you need any more help/genuineness?

/sasha



Hi Sasha,
I'm at half of the work. I tested xelatex with very good results. Now I'm able to easily mix APL & Math without lose a lot of time in strange character conversions and other alchemic processes.
About pandoc I haven't yet find the time to test. I read the info on http://johnmacfarlane.net/pandoc/index.html and it seems simply fantastic.
So at the moment I'm ok

Thanks for your support,
Mario
Mario Sacco
Post Reply