[scribus] Load Text Frame from File Containing Soft Hyphens

Gregory Pittman gpittman at iglou.com
Mon Feb 22 20:02:35 UTC 2021


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



More information about the scribus mailing list