Re: [iText-questions] Hyphenator kills numbers

2011-11-29 Thread Balder VC
On second look, I believe you can provide your own TEX hyphenation file 
that has rules for numbers and it should work.


On 27/11/2011 22:19, Balder VC wrote:
I took a look at the Hyphenators source code, I think it's not build 
to handle numbers at all.

So it's not a bug, it's a feature or rather an abscent feature.

You could write a wrapper for it that checks for numbers strip them 
off and paste them onto the last part.


On 25/11/2011 15:42, Martin Reichl wrote:

Dear iText Team,

we tried your library and are very happy with the Hyphenator class. 
But we found out that words ending with numbers are causing the 
hyphenator to silently 'kill' the trailing numbers. Is this a bug?


com.itextpdf.text.pdf.hyphenation.Hyphenator hyphenator = new 
com.itextpdf.text.pdf.hyphenation.Hyphenator(language,country,2,2);

Hyphenation hyphenized = hyphenator.hyphenate("testword2");

We tested the following inputs resulting in the following outputs ( 
.toString() method)


Beratungsmappe2 --> Be-ra-tungs-map-pe

Bedienungsanleitungen800 --> Be-die-nungs-an-lei-tun-gen

Konverter255 --> Kon-ver-ter

Parabelverzerrung --> Pa-ra-bel-ver-zer-rung

Kind regards
Martin Reichl


Regards
Balder





--
twitter 
redlab-log 
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Hyphenator kills numbers

2011-11-27 Thread David Thielen
That may be correct behavior. After all, what is the proper hyphenation for a 
word like someone123?


From: Balder VC [li...@redlab.be]
Sent: Sunday, November 27, 2011 2:19 PM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Hyphenator kills numbers

I took a look at the Hyphenators source code, I think it's not build to handle 
numbers at all.
So it's not a bug, it's a feature or rather an abscent feature.

You could write a wrapper for it that checks for numbers strip them off and 
paste them onto the last part.

On 25/11/2011 15:42, Martin Reichl wrote:
Dear iText Team,

we tried your library and are very happy with the Hyphenator class. But we 
found out that words ending with numbers are causing the hyphenator to silently 
'kill' the trailing numbers. Is this a bug?

com.itextpdf.text.pdf.hyphenation.Hyphenator hyphenator = new 
com.itextpdf.text.pdf.hyphenation.Hyphenator(language,country,2,2);
Hyphenation hyphenized = hyphenator.hyphenate("testword2");

We tested the following inputs resulting in the following outputs ( .toString() 
method)

Beratungsmappe2 --> Be-ra-tungs-map-pe

Bedienungsanleitungen800 --> Be-die-nungs-an-lei-tun-gen

Konverter255 --> Kon-ver-ter

Parabelverzerrung --> Pa-ra-bel-ver-zer-rung

Kind regards
Martin Reichl

Regards
Balder

--
twitter<http://twitter.com/redlabbe>
redlab-log<http://www.redlab.be/blog/>
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Hyphenator kills numbers

2011-11-27 Thread Balder VC
I took a look at the Hyphenators source code, I think it's not build to 
handle numbers at all.

So it's not a bug, it's a feature or rather an abscent feature.

You could write a wrapper for it that checks for numbers strip them off 
and paste them onto the last part.


On 25/11/2011 15:42, Martin Reichl wrote:

Dear iText Team,

we tried your library and are very happy with the Hyphenator class. 
But we found out that words ending with numbers are causing the 
hyphenator to silently 'kill' the trailing numbers. Is this a bug?


com.itextpdf.text.pdf.hyphenation.Hyphenator hyphenator = new 
com.itextpdf.text.pdf.hyphenation.Hyphenator(language,country,2,2);

Hyphenation hyphenized = hyphenator.hyphenate("testword2");

We tested the following inputs resulting in the following outputs ( 
.toString() method)


Beratungsmappe2 --> Be-ra-tungs-map-pe

Bedienungsanleitungen800 --> Be-die-nungs-an-lei-tun-gen

Konverter255 --> Kon-ver-ter

Parabelverzerrung --> Pa-ra-bel-ver-zer-rung

Kind regards
Martin Reichl


Regards
Balder

--
twitter 
redlab-log 
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] Hyphenator kills numbers

2011-11-25 Thread Martin Reichl
Dear iText Team,

we tried your library and are very happy with the Hyphenator class. But we 
found out that words ending with numbers are causing the hyphenator to silently 
'kill' the trailing numbers. Is this a bug?

com.itextpdf.text.pdf.hyphenation.Hyphenator hyphenator = new 
com.itextpdf.text.pdf.hyphenation.Hyphenator(language,country,2,2);
Hyphenation hyphenized = hyphenator.hyphenate("testword2");

We tested the following inputs resulting in the following outputs ( .toString() 
method)

Beratungsmappe2 --> Be-ra-tungs-map-pe

Bedienungsanleitungen800 --> Be-die-nungs-an-lei-tun-gen

Konverter255 --> Kon-ver-ter

Parabelverzerrung --> Pa-ra-bel-ver-zer-rung

Kind regards
Martin Reichl
 


Martin Reichl
WeLoveApps
Ibykus Campus
Herman-Hollerith-Str. 1
99099 Erfurt

Tel. : +49 (0)361 34 190 990
Fax.: +49 (0)361 55 896 2346
Mobil: +49 (0)1577 14 27 199
E-Mail: rei...@weloveapps.de


--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php