[tex4ht] [bug #123] support fontspec

2016-12-10 Thread Karl Berry
Follow-up Comment #17, bug #123 (project tex4ht):

committed to tl, r42672.

yes, regression testing is desperately needed.



___

Reply to this item at:

  

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



[tex4ht] [bug #123] support fontspec

2016-12-10 Thread Michal Hoftich
Follow-up Comment #16, bug #123 (project tex4ht):

I've found some issues when I tried to compile my older document which uses
minted for syntax highlighting - calc package failed to load correctly. It
uses \@for\sometempvar:=...\do{} command, and as I've found, the : had wrong
catcode, so it was seen as part of the command name, instead of delimiter. 

After some research I've found that tex4ht saves catcodes before the
usepackage.4ht is included, and restores them afterwards. Expl3 is used in
fontspec patch and it somewhat messed this catcode business. 

It should be fixed by newest commit.

Regarding upgrading, I think it would be great to have some regression
testing. To test if testing documents compile without compilation errors and
that the resulting files contain correct XML. Both could be done with Lua, in
order to be portable.

___

Reply to this item at:

  

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



[tex4ht] [bug #123] support fontspec

2016-12-07 Thread Karl Berry
Follow-up Comment #8, bug #123 (project tex4ht):

sorry about the double inclusion. i didn't think i had changed anything but
the word transposition in the filename. oh well.

anyway, with current repo (rev 210), i get:

! Undefined control sequence.
\at:startdoc ...f }\HtmlEnv \a:Preamble \a:PROLOG
(followed by many more errors)

when processing tex4ht-4ht.tex. help?

___

Reply to this item at:

  

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



[tex4ht] [bug #123] support fontspec

2016-12-04 Thread Michal Hoftich
Follow-up Comment #7, bug #123 (project tex4ht):

It was included twice after the change. I fixed that, also I've found that
configuration hooks were included only for xetex. it should be fixed as well
now. Finally, I moved luatex definitions to fontspec-luatex.4ht.

___

Reply to this item at:

  

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



[tex4ht] [bug #123] support fontspec

2016-12-03 Thread Karl Berry
Follow-up Comment #6, bug #123 (project tex4ht):

i felt the need to rename xetex-fontspec.4ht to fontspec-xetex.4ht (committed
in r209 along with administrivia). michal, can you check that all is still
working as intended before i commit to tl, please?

___

Reply to this item at:

  

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



[tex4ht] [bug #123] support fontspec

2016-10-30 Thread Karl Berry
Follow-up Comment #4, bug #123 (project tex4ht):

michal -- just thought i'd check in about updating ... ? tx.

___

Reply to this item at:

  

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



[tex4ht] [bug #123] support fontspec

2016-10-07 Thread Karl Berry
Follow-up Comment #2, bug #123 (project tex4ht):

michal, do you want me to install anything in tl at this point?

___

Reply to this item at:

  

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



[tex4ht] [bug #123] support fontspec

2016-10-07 Thread Michal Hoftich
Follow-up Comment #1, bug #123 (project tex4ht):

As we recently found the way how to alter the package loading (using
usepackage.4ht), I've created small configuration for the Fontspec package.
Basically, what is needed is to prevent Fontspec from loading the EU1 or EU2
font encodings and to prevent loading of OpenType fonts. It works only with
LuaLaTeX at the moment, XeLaTeX still tries to load the fonts. 

The example file can be called using 

make4ht -ulm draft luaotfloadpok.tex new-accents

The `new-accents` option is important, you would get bunch of errors
otherwise. It should be possible to put 

\edef\Preamble{\Preamble,new-accents}

somewhere, but when I do that in usepackage.4ht, then compilation fails with
stack overflow, and in fontspec.4ht it doesn't have any effect.

One thing that doesn't work are font styles from the .htf files, resp. it
doesn't work when you load a font with \setmainfont. So I put basic
configuration for \textit and similar commands to fontspec.4ht, which isn't
really clean, but this is just sample, so I hope it is OK.

Any comments are highly welcome. 

(file #262, file #263, file #264, file #265)
___

Additional Item Attachment:

File name: luaotfloadpok.tex  Size:1 KB
File name: usepackage.4ht Size:2 KB
File name: fontspec.4ht   Size:0 KB
File name: fontspec-4ht.lua   Size:2 KB


___

Reply to this item at:

  

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