Re: [tex4ht] Huge update of tex4ht-fonts-noncjk.tex

2015-06-09 Thread Michal Hoftich

 Looks like Eitan defined some lgr-related aliases for libertine, e.g.,
 tex4ht/ht-fonts/alias/libertine/fxlri-xl-lgr.htf
 contains the two lines:
 ---
 .fxlr-xl-lgr
 htfcss: fxlri-xl-lgrs font-style:italic;
 ---

 So maybe other fonts can point to .fxlr-xl-lgr?

 Also, FWIW, the gfs fonts (gfsdidot, gfsbodoni, etc.) support LGR, also
 cbfonts.  They don't have htf files, but maybe htfgen could actually
 work.  I know a couple of good people who can answer Greek-specific
 questions (but know nothing in particular about tex4ht), if they can help.

I tried gfsbodoni and tex4ht reported some htf files mismatch, but the
result seemed OK. luckily, the fonts reported used encoding and it is
present in TL, so it is easy to use htfgen to create a .htf file. I
realized just now, that instead of creating full .htf file for each
font, it is enough to create them only for enc files and in font htfs
just link to them, together with css information.

Best,
Michal


Re: [tex4ht] Huge update of tex4ht-fonts-noncjk.tex

2015-06-08 Thread Karl Berry
for example I've tried to make fonts for `LGR` fontenc 

Looks like Eitan defined some lgr-related aliases for libertine, e.g.,
tex4ht/ht-fonts/alias/libertine/fxlri-xl-lgr.htf
contains the two lines:
---
.fxlr-xl-lgr
htfcss: fxlri-xl-lgrs font-style:italic;
---

So maybe other fonts can point to .fxlr-xl-lgr?

Also, FWIW, the gfs fonts (gfsdidot, gfsbodoni, etc.) support LGR, also
cbfonts.  They don't have htf files, but maybe htfgen could actually
work.  I know a couple of good people who can answer Greek-specific
questions (but know nothing in particular about tex4ht), if they can help.

Thanks,
Karl


Re: [tex4ht] Huge update of tex4ht-fonts-noncjk.tex

2015-06-08 Thread Michal Hoftich
Hi Karl,


 Fantastic.  Committed (r150).  I took the liberty of renaming the lua
 and tex to t1fontmake.lua and t1fontsample.tex, hoping that will help
 find them in the future.  I also added most of your email message to
 tex4ht-fonts-noncjk.tex as commentary in that chapter.

 I'll install all the new light htf files in TL when updates resume there.


great :)

 Huge update

 Indeed.  It would be nice to split up the huge source files into smaller
 pieces.  It gets hard to figure out what is in them.

 For instance, looking at where the \Chapter commands are in noncjk, it
 looks like the Adobe chapter deserves its own file.  And your new
 Converted chapter could be its own file too.  Maybe ...

it seems like a good idea, for example `modern

 As for other support, it seems nothing comes easy.  For instance, tfm
 names *-ot1.tfm (LaTeX name) should correspond to *7t.htf (fontname
 name), but the only non-alias *7t.htf I see are:
   ht-fonts/unicode/adobe/courier/pcrr7t.htf - monospace
   ht-fonts/unicode/adobe/courier/pcrrc7t.htf - monospace, small caps?
   ht-fonts/unicode/adobe/times/ptmrc7t.htf - regular + small caps
   ht-fonts/unicode/adobe/times/ptmri7t.htf - italic

 Why italic?  No idea.  And these might well be specially for the Adobe
 base35 fonts, despite the name.  And since there are no comments
 explaining what the encoding actually is, it will be laborious to
 discover where the differences are.

 The Cyrillic encodings *t2a, t2b, t2c, x2, might correspond (somewhat)
 to existing *z.htf files.

 Can we not generate .htf files from .enc files?  In the new font
 packages, there should be an enc file for every user-intended tfm,
 defined in the .map file in the package.

 Anyway. Just stray thoughts.  Thanks so much for all your work,
 Karl


Re: [tex4ht] Huge update of tex4ht-fonts-noncjk.tex

2015-06-08 Thread Michal Hoftich
 it seems like a good idea, for example `modern


sorry, I accidentally sent the mail too soon.

modern fonts are included in their own file, we may cut the huge
tex4ht-fonts-noncjk.tex into many smaller files.

 As for other support, it seems nothing comes easy.  For instance, tfm
 names *-ot1.tfm (LaTeX name) should correspond to *7t.htf (fontname
 name), but the only non-alias *7t.htf I see are:
   ht-fonts/unicode/adobe/courier/pcrr7t.htf - monospace
   ht-fonts/unicode/adobe/courier/pcrrc7t.htf - monospace, small caps?
   ht-fonts/unicode/adobe/times/ptmrc7t.htf - regular + small caps
   ht-fonts/unicode/adobe/times/ptmri7t.htf - italic


it is only important that character codes corresponds, the styling
information is included in the light .htf files. But we may of cource
create new master .htf file using htfgen for some font, verify that
all characters are correct and then reference to it.



 The Cyrillic encodings *t2a, t2b, t2c, x2, might correspond (somewhat)
 to existing *z.htf files.

 Can we not generate .htf files from .enc files?  In the new font
 packages, there should be an enc file for every user-intended tfm,
 defined in the .map file in the package.

we can, this is what htfgen does, but we may get too many huge files
as the result. but sometimes it is nearly impossible to find usable
.enc files, for example I've tried to make fonts for `LGR` fontenc and
couldn't find anything usable, the HTML contained different characters
than the source file.



 Anyway. Just stray thoughts.  Thanks so much for all your work,
 Karl


Best,

Michal


Re: [tex4ht] Huge update of tex4ht-fonts-noncjk.tex

2015-06-07 Thread Karl Berry
Hi Michal,

(Sorry for the delayed reply.)

Lua file, sample TeX file and patch for tex4ht-fonts-noncjk.tex are
attached.

Fantastic.  Committed (r150).  I took the liberty of renaming the lua
and tex to t1fontmake.lua and t1fontsample.tex, hoping that will help
find them in the future.  I also added most of your email message to
tex4ht-fonts-noncjk.tex as commentary in that chapter.

I'll install all the new light htf files in TL when updates resume there.

Huge update

Indeed.  It would be nice to split up the huge source files into smaller
pieces.  It gets hard to figure out what is in them.  

For instance, looking at where the \Chapter commands are in noncjk, it
looks like the Adobe chapter deserves its own file.  And your new
Converted chapter could be its own file too.  Maybe ...

As for other support, it seems nothing comes easy.  For instance, tfm
names *-ot1.tfm (LaTeX name) should correspond to *7t.htf (fontname
name), but the only non-alias *7t.htf I see are:
  ht-fonts/unicode/adobe/courier/pcrr7t.htf - monospace
  ht-fonts/unicode/adobe/courier/pcrrc7t.htf - monospace, small caps?
  ht-fonts/unicode/adobe/times/ptmrc7t.htf - regular + small caps
  ht-fonts/unicode/adobe/times/ptmri7t.htf - italic

Why italic?  No idea.  And these might well be specially for the Adobe
base35 fonts, despite the name.  And since there are no comments
explaining what the encoding actually is, it will be laborious to
discover where the differences are.

The Cyrillic encodings *t2a, t2b, t2c, x2, might correspond (somewhat)
to existing *z.htf files.

Can we not generate .htf files from .enc files?  In the new font
packages, there should be an enc file for every user-intended tfm,
defined in the .map file in the package.

Anyway. Just stray thoughts.  Thanks so much for all your work,
Karl