[tex4ht] [bug #257] \includegraphics fails with LuaLaTeX backend

2015-08-05 Thread Karl Berry
Update of bug #257 (project tex4ht):

 Open/Closed:Open => Closed 

___

Follow-up Comment #5:

ok, thanks. i (finally) installed the change and updated tex live.
don't have the energy to talk to latex people about dvips.def, so closing i
guess ... if you have any time to report the issue to them, please do.


___

Reply to this item at:

  

___
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



Re: [tex4ht] [bug #261] add full support for kpfonts when compiling in SVG mode for math

2015-08-05 Thread Michal Hoftich
Hi Deimi

> please can you post a command line you use for matml output?
>

it is something like

make4ht -um draft test mathml " -utf8 -cmozhtf"

or more traditionally

htlatex test "xhtml,mathml,charset=utf-8" " -utf8 -cmozhtf"



>
> I did not use any automation. It would be difficult to make it. Although I
> think about automation for chinese fonts.
> My approach is to use proofsheets for a  (math) font, so I can quickly
> identify problems.
> proofsheet  is  an html table where I put
> char number;  picture of a char; and unicode value (or whaterver comes from
> a htf);
>
> How do to produce a missing htf font? For example, jkpex.htf.
> My method is as follow:
> -  guess the best possible match for another font (that has htf counterpart)
> E.g. for jkpex font I thought that it would be using same encoding as
> cmex10.
> I made jkpex.htf  file with an alias for 'cmex' and run proofsheets so  I
> can validate my guess.
> Another option I use to compare fonts (and encodings) is generate tables
> with nfssfont (`pdflatex nfssfont`) and compare  PDFs.
> After comparison it was clear that jkpex font is an extended version of
> cmex10.
> So, for literate code I took cmex font from tex4ht-font-noncjk.tex as a
> basis and added some extra characters.

OK, nice :) I tried to do automation with
https://github.com/michal-h21/htfgen

and it works reasonably well for text fonts, but not for math fonts,
where manual work is probably needed.


> Probably it would be better to make a patch for a tex4ht-font-noncjk.tex
> file.
>

This file is already really huge, maybe it would be better to split
it, I think your file can serve as template.

Best regards,
Michal


Re: [tex4ht] [bug #261] add full support for kpfonts when compiling in SVG mode for math

2015-08-05 Thread Deimantas Galcius

Hi, Michal,



I can confirm that mathml output seems nice as well, only thing I've
spot is that not all characters in \mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
are converted to their unicode counterparts, but it is only minor
problem.

please can you post a command line you use for matml output?


I have posted source code for kpfonts (unicode) on 
https://github.com/dgalcius/kpfonts.
'lit' folder contains literate source file. Run 'make' to generate htf files.
Folder 'charpos' is for making font proof sheets. Copy generate htf file to 
charpos folder and
run 'make fonts'.  it will generate html files (e.g. jkpex/jkpex.htm)

This is really nice. Could you post some notes about the method you used
for math font conversion? Had you used any automation?

I did not use any automation. It would be difficult to make it. Although I 
think about automation for chinese fonts.
My approach is to use proofsheets for a  (math) font, so I can quickly identify 
problems.
proofsheet  is  an html table where I put
char number;  picture of a char; and unicode value (or whaterver comes from a 
htf);

How do to produce a missing htf font? For example, jkpex.htf.
My method is as follow:
- /guess the best possible match for another font/ (that has htf counterpart)
E.g. for jkpex font I thought that it would be using same encoding as cmex10.
I made jkpex.htf  file with an alias for 'cmex' and run proofsheets so  I can 
validate my guess.
Another option I use to compare fonts (and encodings) is generate tables with 
nfssfont (`pdflatex nfssfont`) and compare  PDFs.
After comparison it was clear that jkpex font is an extended version of cmex10.
So, for literate code I took cmex font from tex4ht-font-noncjk.tex as a basis 
and added some extra characters.
Probably it would be better to make a patch for a tex4ht-font-noncjk.tex file.





I did not test svg output. Do I have to run 'make4ht' for it?

It is better, as you can easily configure the method used for dvi to svg
conversion. See Nasser's page for efficient method for conversion files
with huge number of equations:

http://12000.org/my_notes/faq/LATEX/layout/#x1-40002

Best regards,
Michal


perfect!

best regards,
-- deimi