Loading ...
Sorry, an error occurred while loading the content.
 

RE: [XSL-FO] forcing a wrap in fop 0.9

Expand Messages
  • Peter Wu
    Hi Ken, I don t think this forum allows for attachments but my email address is peterlwu@yahoo.com and I would like to see what you did. Thanks, peter ...
    Message 1 of 5 , Dec 16, 2005
      Hi Ken,

      I don't think this forum allows for attachments but my
      email address is peterlwu@... and I would like
      to see what you did.

      Thanks,
      peter

      --- Ken Sands <kensands@...> wrote:

      > Wooooo Wooooo!
      >
      > Scratch that, I just worked out how to do it!
      >
      > In the classes I have an "a" followed by every
      > symbol/numeric character ie
      > A£
      > A%
      > A1
      > a2
      > Etc etc
      >
      > As well as "aA" ofcourse and all the rest of the
      > standard alphabet
      >
      > Then in the patterns I have an a1 making them all
      > work
      >
      > I tried "a" every letter but that stopped it working
      > at all for some reason
      >
      > All patterns are just the alphabet followed by 1
      >
      > It's working perfectly. Where do I submit my hyph
      > file for use by others?
      >
      > Ken.
      >
      >
      > -----Original Message-----
      > From: Ken Sands
      > Sent: 16 December 2005 16:21
      > To: XSL-FO@yahoogroups.com
      > Subject: RE: [XSL-FO] forcing a wrap in fop 0.9
      >
      >
      > Ok, I've almost found a good way, and I think this
      > should really be suggested as a standard addition to
      > fop as it took me ages to set it all up.
      >
      > I decided to use hyphenation, however there are only
      > real language hypenation files available
      >
      > What I really wanted was a hyphenation file that
      > would allow hyphenation of any word containing any
      > character and with no prefered breakpoints, I think
      > this should come as a language file "symbols" or
      > something
      >
      > I had to make it myself (sortof) by taking the file
      > for "en" and enabling all the symbols and numbers in
      > the <classes>
      >
      > However this still doesn't split on numbers if I had
      > the text "1112223333444555666777" it wouldn't split
      > it at all
      >
      > Due to the way the patterns work this doesn't seem
      > possible? Any ideas?
      >
      > Either way making a hyph language that allows
      > symboled words has really helped.
      >
      > I'll try your font size checking suggestion now, as
      > until all number word splits are done it may be the
      > only way.
      >
      > Thanks again.
      >
      > Ken.
      >
      >
      >
      >
      > -----Original Message-----
      > From: Peter Wu [mailto:peterlwu@...]
      > Sent: 15 December 2005 18:04
      > To: XSL-FO@yahoogroups.com
      > Subject: Re: [XSL-FO] forcing a wrap in fop 0.9
      >
      >
      > Greetings,
      >
      > I don't really know if this works or not but you
      > could
      > use the BaseFont.getWidthPoint() (see
      >
      http://itextdocs.lowagie.com/docs/com/lowagie/text/pdf/BaseFont.html)
      > to get the width of each character in the string to
      > be
      > rendered given the font and font size, compare the
      > aggregate width to the 200pt limit as you go along
      > and
      > insert a space character in the string just before
      > the
      > length exceeds the 200pt.
      >
      > Thanks,
      > peter
      >
      > --- Ken Sands <kensands@...> wrote:
      >
      > > In a table cell of 200pt width I have a long
      > > filename, no spaces that
      > > overruns the cell
      > >
      > > I've tried all the things fop says to make it
      > > hypenate but I can't get
      > > it to work, in 20.5 I could use zero width spaces
      > > but now it's putting
      > > in the # hash symbol whereever I use it.
      > >
      > > I don't really want there to be a hyphen added as
      > > the filename needs to
      > > be seen as is.
      > >
      > > Can anyone show me how to make
      > >
      > > _______________
      > > |Thisreallylongfilename.txt
      > > |______________|
      > >
      > > Go like this
      > >
      > > _______________
      > > |Thisreallylon |
      > > |gfilename.txt |
      > > |______________|
      > >
      > >
      > > In fop 0.9, it seems I need a wrap-option="force"
      > or something
      > >
      > > Thanks.
      > >
      > > Ken.
      > > --
      > >
      > > Scanned by mailCritical.
      > > --
      > >
      > > The DSI Group of Companies
      > > International House, Barlow Way,
      > > Fairview Industrial Estate., Rainham, Essex, RM13
      > > 8EW, UK
      > > Tel: +44 (0) 1708 523 000
      > > Fax: +44 (0) 1708 524 000
      > > Email: enquiries@...
      > >
      > >
      >
      ************************************************************************
      > > This message and any attachments is intended only
      > > for the individual or company to which it is
      > > addressed and may contain information which is
      > > privileged, confidential or prohibited from
      > > disclosure or unauthorised use. If the recipient
      > of
      > > the transmission is not the intended recipient, or
      > > the employee or agent responsible for delivering
      > > such materials to the intended recipient, you are
      > > hereby notified that any use, any form of
      > > reproduction, dissemination, copying, disclosure,
      > modification,
      > > distribution and/or publication of this email
      > message or it's
      > > attachments other than by its intended recipients
      > is strictly
      > > prohibited by the sender. If you have received it
      > in error, please
      > > notify us immediately by telephone on the number
      > > above and destroy the message and all copies in
      > your
      > > possession.
      > >
      >
      ************************************************************************
      > >
      >
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      > --
      >
      > Scanned by mailCritical.
      > --
      >
      > The DSI Group of Companies
      > International House, Barlow Way,
      > Fairview Industrial Estate., Rainham, Essex, RM13
      > 8EW, UK
      > Tel: +44 (0) 1708 523 000
      > Fax: +44 (0) 1708 524 000
      > Email: enquiries@...
      >
      >
      ************************************************************************
      >
      === message truncated ===
    Your message has been successfully submitted and would be delivered to recipients shortly.