Author Topic: Replace italic or bold text in any charcter style in future version  (Read 2863 times)

leaf

  • Jr. Member
  • **
  • Posts: 88
  • Karma: 0
  • Scribus User
Does anybody know, if in Scribus 1.5 or 1.6 We can see option available from Edit -> Search/Replace and
here find all italic or bold or bolditalic in all document and replace in own any character style.
It is for me very necassary option. Presently I have to look for without automatic search and manually replace. In long doucument it are hours.
Regards

GarryP

  • Hero Member
  • *****
  • Posts: 1600
  • Karma: 25
  • Scribus User
Re: Replace italic or bold text in any charcter style in future version
« Reply #1 on: March 10, 2014, 03:00:27 pm »
Hi leaf.

This might not start off answering your question but please keep reading.

I think it's better to use styles with regards to their meaning within the document rather than what they do with the text.

For example, if you have a character style that makes text bold and you call it "Bold", then apply that style to the text it makes sense at first but if you then want to change all of the bold text to, say, italics, then your "Bold" style name doesn't make sense any more and will cause confusion.

It would be better to think about what the style is for and then name it accordingly, e.g. "Image Caption", "Emphasised", "Phone Number", "Sidebar", etc. That way, if you need to change the formatting of a particular style, you can do it easily and the style name still works.

Of course, this doesn't help if you've manually set some text to, for instance, bold, in the Properties and you want to later change it - as I believe is your intention - but your problem really demonstrates that styles should be some of the very earliest things you should set-up in your document.

They only take a few seconds to set-up and can save so much time in the long-run. You don't even have to set them up correctly at first. As long as you start using them from the beginning you can change them at any time as necessary.

I realise that this doesn't solve your current dilemma, and you could well be an expert in styles. My advice is more for the people reading this who find themselves having to do the same thing as you are asking about.

With regards to your feature request, unless it's already being thought about (and it might well be), I'd suspect that it would be a low-priority item. However, it could be a good student project as I'm sure it won't be as simple as it first sounds.

Anyway, apologies if I've been preaching to the converted but I really think that good style management is something that should be given higher visibility in the Scribus documentation. Styles are so powerful that not using them is a real shame.

Garry.

leaf

  • Jr. Member
  • **
  • Posts: 88
  • Karma: 0
  • Scribus User
Re: Replace italic or bold text in any charcter style in future version
« Reply #2 on: March 10, 2014, 04:28:44 pm »
GarryP
Problem is elsewhere.
Scribus still can't import character styles from text files. Often in text document author don't use any styles, but important is, to preserve italic, bold in ready book. Therfore I'm looking for any byway.
If I have text document for example 150 pages where author use in text italic, bold etc (not for mage Caption", "Emphasised", "Phone Number", "Sidebar" etc) I need any automatic/semi-automatic solution.
In Quark, PagePlus it works.
Regards




Nermander

  • Hero Member
  • *****
  • Posts: 1261
  • Karma: 17
Re: Replace italic or bold text in any charcter style in future version
« Reply #3 on: March 11, 2014, 08:47:24 am »
To be able to use formatting as both a pattern and replacement in search/replace dialogs would be very nice. I've used it a lot in MS Word.

GarryP

  • Hero Member
  • *****
  • Posts: 1600
  • Karma: 25
  • Scribus User
Re: Replace italic or bold text in any charcter style in future version
« Reply #4 on: March 11, 2014, 02:37:06 pm »
leaf: Ah, I see.

I'm fortunate that I don't have to deal with contributor formatting very often but I can see how much of a problem it could be, especially on long documents.

You might want to have a look at this post: http://forums.scribus.net/index.php/topic,1090.0.html

There's a bit of chat there about a similar subject. It's mostly about Markdown but there could be something that might be useful. (It might, for instance, be possible to amend the code in the project mentioned by a.l.e. to accommodate ODT - or other - files too, though I've no idea how far the project went, if it's not still on-going.)