You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Sanket Desai <de...@gmail.com> on 2004/10/20 09:41:51 UTC

Help required

Hi there,

        Can anyone guide me how to add hyphenation for Japanese
language? I have got .tex file for SJIS i.e. SJIS.tex, but according
to FOP's documentation, I need to convert it in .xml file. I don't
know how to convert it. So, please guide for the same.

regards,

Sanket.

Re: (Moved from fop-dev:) RE: Help required -- Converting TeX files to XML

Posted by Christopher Milton <cm...@yahoo.com>.
Hermes genrates XML from TeX http://www.aei.mpg.de/hermes/

--- "Andreas L. Delmelle" <a_...@pandora.be> wrote:
> Hi,
> 
> > > Can anyone guide me how to add hyphenation
> > > for Japanese language? I have got .tex file for SJIS i.e.
> > > SJIS.tex, but according to FOP's documentation,
> > > I need to convert it in .xml file. I don't
> > > know how to convert it. So, please guide for the
> > > same.
> 
> Check: http://xml.apache.org/fop/hyphenation.html#patterns
> 
> All the relevant data on the creation of FOP hyphenation patterns is
> explained there. No real profound knowledge on TeX patterns here, but having
> taken a look at a few TeX-files, it looks like it wouldn't pose too much of
> a problem to create a FOP hyphenation XML from one of those --maybe one
> could write a Java class that does exactly that, or maybe a Perl script
> would be more appropriate. Who knows... also conceivable to write a Xerces
> XNI TeXParserConfiguration[1] to parse a TeX-file, then use Xerces to send
> the generated SAX events back to a file.
> 
> HTH,
> 
> Andreas
> 
> [1] see: http://xml.apache.org/xerces2-j/xni-config.html for an example of a
> CSVParserConfig; use spaces instead of commas to tokenize the buffered line
> of TeXt, change or add to the element names, add a few rules... --and don't
> forget to donate it back to Xerces, as to return the favor ;-)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


(Moved from fop-dev:) RE: Help required -- Converting TeX files to XML

Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
Hi,

> > Can anyone guide me how to add hyphenation
> > for Japanese language? I have got .tex file for SJIS i.e.
> > SJIS.tex, but according to FOP's documentation,
> > I need to convert it in .xml file. I don't
> > know how to convert it. So, please guide for the
> > same.

Check: http://xml.apache.org/fop/hyphenation.html#patterns

All the relevant data on the creation of FOP hyphenation patterns is
explained there. No real profound knowledge on TeX patterns here, but having
taken a look at a few TeX-files, it looks like it wouldn't pose too much of
a problem to create a FOP hyphenation XML from one of those --maybe one
could write a Java class that does exactly that, or maybe a Perl script
would be more appropriate. Who knows... also conceivable to write a Xerces
XNI TeXParserConfiguration[1] to parse a TeX-file, then use Xerces to send
the generated SAX events back to a file.

HTH,

Andreas

[1] see: http://xml.apache.org/xerces2-j/xni-config.html for an example of a
CSVParserConfig; use spaces instead of commas to tokenize the buffered line
of TeXt, change or add to the element names, add a few rules... --and don't
forget to donate it back to Xerces, as to return the favor ;-)


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Help required

Posted by Glen Mazza <gr...@yahoo.com>.
Best to use the FOP-USER list for these questions, the
same people are on both list, but actually more can
help you on FOP-USER.  Also, please make your subject
line meaningful to help for later archive retrieval.

Glen


--- Sanket Desai <de...@gmail.com> wrote:

> Hi there,
> 
>         Can anyone guide me how to add hyphenation
> for Japanese
> language? I have got .tex file for SJIS i.e.
> SJIS.tex, but according
> to FOP's documentation, I need to convert it in .xml
> file. I don't
> know how to convert it. So, please guide for the
> same.
> 
> regards,
> 
> Sanket.
>