[scribus] Load Text Frame from File Containing Soft Hyphens

Matt Miller matt.miller at fastmail.com
Mon Feb 22 23:00:40 UTC 2021



On Mon, Feb 22, 2021, at 13:17, Silvain Dupertuis wrote:
> *2D is not a soft hyphen*, it is a hyphen!

Right.  Thanks.  I do have "AD" hyphens in my file.  Sorry for the typo.  Too many different dashes are floating around in my head!

> If you have used it as a soft hyphen for hyphenation, then you should 
> first replace them 
> with a *true soft hyphen: AD (U+00AD)*
> 
>   * Here is a soft hyphen between xx and zz : xx­zz
>   * and this is a normal hyphen xx-yy
> 
> 
> Le 22.02.21 à 21:02, Gregory Pittman a écrit :
> > On 2/22/21 2:49 PM, Matt Miller wrote:
> >> I'm loading my book into a text frame chain from a text file.  I want to control which words can be hyphenated, so I have the soft hyphen character, hex 2D, in particular words throughout my text file as I wish.  I right-click on the frame and use the "Get Text..."  dialog to load the frame, but the soft hyphen character is displayed in the frame as a black diamond with a question mark in it, and the character is not treated as a soft hyphen.  If I delete that character in Scribus and use "Insert | Character | Soft Hyphen" or Ctrl+Shift+-, then everything works as expected.
> >>
> >> I've verified that my text file encoding is UTF-8, and that "UTF-8" is selected in the "Get Text..." dialog.  I've tried my text file with or without a BOM, and still the results are the same.  I'm on Windows, and If I change both my text file encoding and the "Get Text..." encoding option to Windows-1252 then the soft hyphen comes across properly, but then other characters from my file, for example the pilcrow, are goofed up.  My text file has some pretty obscure Unicode characters, so I think I need to stick with UTF-8.
> >>
> >> Should I look at tags and text filters or some scripting as a workaround, or is there some easier way to do this?  Shouldn't a soft hyphen character in a text file be treated the same as one inserted from the Scribus insert menu?
> >>
> > Hi Matt,
> >
> > It's probably something about the encoding.
> > The quickest fix might come from using Search/Replace. You can copy/paste the unwanted character into the search box.
> >
> > Greg
> >
> > ___
> > Scribus Mailing List: scribus at lists.scribus.net
> > Edit your options or unsubscribe:
> > http://lists.scribus.net/mailman/listinfo/scribus
> > See also:
> > http://wiki.scribus.net
> > http://forums.scribus.net
> 
> 
> -- 
> Silvain Dupertuis
> Route de Lausanne 335
> 1293 Bellevue (Switzerland)
> tél. +41-(0)22-774.20.67
> portable +41-(0)79-604.87.52
> web: silvain-dupertuis.org <http://perso.silvain-dupertuis.org>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.scribus.net/pipermail/scribus/attachments/20210222/d9933390/attachment.htm>
> ___
> Scribus Mailing List: scribus at lists.scribus.net
> Edit your options or unsubscribe:
> http://lists.scribus.net/mailman/listinfo/scribus
> See also:
> http://wiki.scribus.net
> http://forums.scribus.net
>

-- 

  Matt Miller
  mailto:matt.miller at fastmail.com



More information about the scribus mailing list