Podrška #15844
Zatvorenasciidoc
100%
Opis
ASCIIdoc is an extensive Python script that takes simple text files and converts them into other formats: html, docbook
instalacija:- apt-get install asciidoc
- instalacija fop-0.20.5 (vidi ticket za detalje)
Fajlovi
Povezani tiketi 1 (0 otvoreno — 1 zatvoren)
Izmjenjeno od Ernad Husremović prije više od 17 godina
- Fajl fop-0.95-bin.zip fop-0.95-bin.zip dodano
- Fajl fop-0.20.5-bin.tar.gz fop-0.20.5-bin.tar.gz dodano
Izmjenjeno od Ernad Husremović prije više od 17 godina
asciidoc fop patch za 0.95 (detalji na mailing listi)
Izmjenjeno od Ernad Husremović prije više od 17 godina
- Fajl jimi1_0.zip jimi1_0.zip dodano
- Fajl jimi.jar jimi.jar dodano
traži mi neku java image library jimi
hernad@nmraka-1:~/devel/java/fop-0.20.5/Jimi/src$ cat compile.sh
#!/bin/sh # Compile script for JDK1.2 javac -source 1.2 -classpath $CLASSPATH:. -d classes `cat main_classes.txt`
napravio jar:
hernad@nmraka-1:~/devel/java/fop-0.20.5/Jimi/src/classes$ jar cvf jimi.jar .
pa ovaj jar kopirao u fop-0.20.5/lib
Izmjenjeno od Ernad Husremović prije više od 17 godina
- Fajl Architectural_overview.pdf Architectural_overview.pdf dodano
uradio
chmod +x /home/hernad/devel/java/fop-0.20.5/fop.sh
ln -s /home/hernad/devel/java/fop-0.20.5/fop.sh /home/hernad/bin/fop
i napokon ovo radi:
hernad@nmraka-1:~/devel/gitorious/passenger/doc$ a2x -f pdf Architectural\ overview.txt
lijep output
Izmjenjeno od Ernad Husremović prije više od 17 godina
- Status promijenjeno iz Dodijeljeno u Zatvoreno
- % završeno promijenjeno iz 0 u 100
Izmjenjeno od Ernad Husremović prije više od 17 godina
problem naših slova: postoji kako sam i očekivao problem naših slova kod pdf-a. inače html output uredno prikazuje naša slova.
da li fop-0.90.5 radi posao kako treba ?
Izmjenjeno od Ernad Husremović prije više od 17 godina
testirao sa fop 0.95 ali ne radi
da bi uopšte izgenerisao to patchirao asciidoc source (komentarisao fop.extensions liniju)
sudo vi /etc/asciidoc/docbook-xsl/fo.xsl
<!-- <xsl:param name="fop.extensions" select="1" /> -->
primjetio sam međutim da mi loše formatira slike - ne mogu da stanu na stranicu, dok je fop 0.20.5 fino smanjio sliku tako da stane na stranicu
Izmjenjeno od Ernad Husremović prije više od 17 godina
znači, držimo se fop-a 0.20.5 za pdf generaciju.
što se tiče naših slova ... hmm vječni problem
Izmjenjeno od Ernad Husremović prije više od 17 godina
Izmjenjeno od Ernad Husremović prije više od 17 godina
Izmjenjeno od Ernad Husremović prije više od 17 godina
"super reference internacionalnih slova"http://www.eki.ee/letter/chardata.cgi?lang=lt+Lithuanian&script=latin
ccaron (č): decimal: č UTF-8 (c4, 8d)
Izmjenjeno od Ernad Husremović prije više od 17 godina
hm ovo je do fop-a
test txt
:deg: {amp}#176;
:ccaron: {amp}#269;
test {nbsp} {gt}
test-2 37{deg}
test-3 {ccaron}
kraj --------------------
ovo radi sa html ali pdf generacija daje tarabu na ccaron supsituciji, dok recimo pdf fino kaže 37(znak za stepeni celzijusa)
Izmjenjeno od Ernad Husremović prije više od 17 godina
http://mail-archives.apache.org/mod_mbox/forrest-dev/200311.mbox/%3C3FA90CC8.4000006@isu-gmbh.de%3E
Oliver Vecernik wrote: > Christian Geisert schrieb: [..] >> For the PDF see http://xml.apache.org/fop/faq.html#pdf-characters >> (it seems c-caron is not part of ISO Latin1) > > I'm no font expert, but as far as I know it is part of ISO Latin2. But > I've rendered it already correctly from other programs and if I look at > the PDF spec (V1.3) the caron should be at 031 (octal). But it is also You need a c-caron, caron is not enough ;-) And c-caron is not part of the standard PDF fonts. So you need to use (and embed) a custom font for the PDF. > renderd to a `?' in the trail altough it is rendered correctly just the > line under the trail. That's why I was asking if this is a bug. The problem with the trail sounds like a bug (and is very likely not related to the PDF problem). How does the html source for the c-caron look like? Christian
Izmjenjeno od Ernad Husremović prije više od 17 godina
List: fop-dev
Subject: Re: Croatian characters in fop created pdf
From: Keiron Liddle <keiron () aftexsw ! com>
Date: 2002-12-13 10:36:21
[Download message RAW]
On Fri, 2002-12-13 at 08:35, Adis Katkic wrote:
Hi,
croatian characters are of type ISO-8859-2 (latin 2)
The unusual characters are: .
Whatever the characters are, all I can see is a "."
I don't know if I said it before, but Fop doesn't use the fonts from you
platform, apart from the default fonts you need to embed the fonts.
Thanks Keiron but I'm still stack with my problem.
If you look at the docs/examples/fo/fonts.fo it has all the
characters for the inbuilt fonts.
If the characters you need are not there then you will need
another font that has the characters, if they are there you need to use
the correct encoding or character reference.
Izmjenjeno od Ernad Husremović prije više od 17 godina
http://xmlgraphics.apache.org/fop/trunk/fonts.html
If you want FOP to use custom fonts, you need to tell it where to find them. This is done in the configuration file and once per renderer (because each output format is a little different). In the basic form, you can either tell FOP to find your operating system fonts or you can specify directories that it will search for support fonts. These fonts will then automatically be registered.
<renderers>
<renderer mime="application/pdf">
<fonts>
<directory>C:\MyFonts1</directory>
<directory recursive="true">C:\MyFonts2</directory>
<auto-detect/>
</fonts>
</renderer>
</renderers>
Izmjenjeno od Ernad Husremović prije više od 17 godina
http://www.nabble.com/Problems-with-czech-characters-td2945890.html
.... Hello! I had same problem due to ISO latin 2 character set that is in use in our country (Slovenia). You have to create font metric file for font types you want to use (from *.ttf) and register those files with FOP. You can find instructions on how this is done here: http://xmlgraphics.apache.org/fop/0.20.5/fonts.html#custom
http://xmlgraphics.apache.org/fop/0.94/fonts.html
Use it in a similar manner to PFMReader. For example, to create such a metrics file in Windows from the TrueType font at c:\myfonts\cmr10.ttf:
java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging.jar;lib\commons-io.jar
org.apache.fop.fonts.apps.TTFReader [options]
C:\myfonts\cmr10.ttf ttfcm.xml
TTFReader [options]:
* -d <DEBUG | INFO > Sets the debug level (default is INFO).
* -fn <fontname> Same as for PFMReader.
* -ttcname <fontname> If you're reading data from a TrueType Collection (.ttc file) you must specify which font from the collection you will read metrics from. If you read from a .ttc file without this option, the fontnames will be listed for you.
* -enc ansi Creates a WinAnsi-encoded font metrics file. Without this option, a CID-keyed font metrics file is created. The table below summarizes the differences between these two encoding options as currently used within FOP. Please note that this information only applies to TrueType fonts and TrueType collections:
Izmjenjeno od Ernad Husremović prije više od 17 godina
- Fajl cid-fonts.pdf cid-fonts.pdf dodano