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 Christian Ziesemer <sa...@inghuimische.de> on 2003/12/21 19:14:29 UTC
Typesetting API
(I think a new thread is appropriate)
> Batik extends text attributes with kerning, word and character spacing. The
> beauty of pure Java2D text is : you do not have to preprocess fonts files
> and to deal with glyph metrics. If you want I will send you my font test
> program.
This would be nice. Thanks.
> What is your idea of a typesetting API? Something like a FOP renderer
> interface, storing a document as graphics objects in memory, a formatter?
I would like to have an API that enables high quality typesetting for
every Java application. This way FOP could replace *TeX sooner or later
and, in the best case, Swing applications would be able to show
ligatures etc. I would like to have a complete XML/Java based publishing
workflow including some nice applications like a graphical stylesheet
editor.
The typesetting API should typeset text a beautiful way. What it needs to
do so is the character to typeset and enough meta information:
_________________ ____________________
Text + Meta | | abstract | |
-------------->| typesetting API |------------>| further processing |
Information |_________________| result |____________________|
Although not very familiar with the FOP code, FOP must do this somewhere
(IIRC the area package?). Therefore I would have to look how
-FOP
-Java
-TeX
do it. If Batik has already some kind of kerning support it would be
of interest too. A look on iText won't hurt either. After that I should
be able to tell what all of them have in common, if the process could
be generalized and if the current Java API (java.text package etc.)
could be extended or would have to be replaced.
Of course font handling would be another field of interest: Which font
formats are/should be supported, how has an unified representation of
fonts to look like (how is it done in Java, FOP,...). Where are the
benefits, drawbacks of the different solutions...
Christian
Re: Typesetting API
Posted by Simon Pepping <sp...@leverkruid.nl>.
On Sun, Dec 21, 2003 at 09:21:28PM +0000, chz wrote:
> Am So, den 21.12.2003 schrieb Simon Pepping um 19:38:
>
> > Are you aware that there is a (completely faithful) reimplementation
> > of TeX in Java? It is called NTS, and can be found on CTAN,
> > e.g. www.tex.ac.uk or ftp.tex.ac.uk. IIRC it is to be found in
> > directory systems.
>
> Jep. Had a short look at it. But as you say: It seems to be a
> reimplmentation of TeX. That's ok, cause that was the goal for version
> 1.0 but as far as I can see it's (sorry) nearly useless. I'm not that
> deep in the NTS code to be sure, but because it's a reimplementation I
> could image that NTS simulates ASCII-code instead of using Unicode. So
> there would be no additional value. Please correct me if I'm wrong.
That is correct, except that the limitations in NTS are artificial and
could be relaxed.
Regards, Simon
--
Simon Pepping
email: spepping@leverkruid.nl
home page: http://www.leverkruid.nl
Re: Typesetting API
Posted by chz <sa...@gmx.de>.
Am So, den 21.12.2003 schrieb Simon Pepping um 19:38:
> > ligatures etc. I would like to have a complete XML/Java based publishing
> > workflow including some nice applications like a graphical stylesheet
> > editor.
>
> Hear, hear. I am here to see and help make this happen.
Oh! Fine. :-)
> Are you aware that there is a (completely faithful) reimplementation
> of TeX in Java? It is called NTS, and can be found on CTAN,
> e.g. www.tex.ac.uk or ftp.tex.ac.uk. IIRC it is to be found in
> directory systems.
Jep. Had a short look at it. But as you say: It seems to be a
reimplmentation of TeX. That's ok, cause that was the goal for version
1.0 but as far as I can see it's (sorry) nearly useless. I'm not that
deep in the NTS code to be sure, but because it's a reimplementation I
could image that NTS simulates ASCII-code instead of using Unicode. So
there would be no additional value. Please correct me if I'm wrong.
Christian
Re: Typesetting API
Posted by Simon Pepping <sp...@leverkruid.nl>.
On Sun, Dec 21, 2003 at 06:14:29PM +0000, Christian Ziesemer wrote:
> (I think a new thread is appropriate)
>
> > What is your idea of a typesetting API? Something like a FOP renderer
> > interface, storing a document as graphics objects in memory, a formatter?
>
> I would like to have an API that enables high quality typesetting for
> every Java application. This way FOP could replace *TeX sooner or later
> and, in the best case, Swing applications would be able to show
> ligatures etc. I would like to have a complete XML/Java based publishing
> workflow including some nice applications like a graphical stylesheet
> editor.
Hear, hear. I am here to see and help make this happen.
> Although not very familiar with the FOP code, FOP must do this somewhere
> (IIRC the area package?). Therefore I would have to look how
> -FOP
> -Java
> -TeX
Are you aware that there is a (completely faithful) reimplementation
of TeX in Java? It is called NTS, and can be found on CTAN,
e.g. www.tex.ac.uk or ftp.tex.ac.uk. IIRC it is to be found in
directory systems.
Regards, Simon
--
Simon Pepping
email: spepping@leverkruid.nl
home page: http://www.leverkruid.nl