Bulk change of ligature setting in fonts?
Bulk change of ligature setting in fonts?
Background: I installed a new version of a font on my computer. I use this font all the time. Apparently one of the improvements of the new version is that it supports ligatures. I do not want the ligatures; in fact, I should not use them for most of my documents. The bad thing for me is that I've used this font in scores or hundreds of documents, and now when I open them, they have ligatures as in the attached image of "st" with ligature.
What's the best way to handle this? I see that NWP (2.1.2) has Format > Ligature, and under that there is the option to "Use None." That's what I'd like. But is there a way to do that for, say, all files in a folder (including sub-folders)? Or maybe I just need to have a macro selects all text in the document (main text and footnotes) and then applies "Use None." Then I guess I could put the macro in the menu bar and run it each time I open one of those files. Any advice (or macros) are welcome
And … in that same menu (Format > Ligature) there is "Use Default." Hmm. What's the default? Is there not some way I can change that? If so, that might solve my problem. Are the defaults set by the font? The OS? Something/someone else (like maybe the user)?
Thank you!
What's the best way to handle this? I see that NWP (2.1.2) has Format > Ligature, and under that there is the option to "Use None." That's what I'd like. But is there a way to do that for, say, all files in a folder (including sub-folders)? Or maybe I just need to have a macro selects all text in the document (main text and footnotes) and then applies "Use None." Then I guess I could put the macro in the menu bar and run it each time I open one of those files. Any advice (or macros) are welcome
And … in that same menu (Format > Ligature) there is "Use Default." Hmm. What's the default? Is there not some way I can change that? If so, that might solve my problem. Are the defaults set by the font? The OS? Something/someone else (like maybe the user)?
Thank you!
- Attachments
-
- st ligature
- st ligature.png (7.19 KiB) Viewed 28771 times
- martin
- Official Nisus Person
- Posts: 5228
- Joined: 2002-07-11 17:14:10
- Location: San Diego, CA
- Contact:
Re: Bulk change of ligature setting in fonts?
Having a macro select all text your document and turn off ligatures is a simple way to achieve what you'd like. However, if you consistently use a Normal paragraph style in your documents, I'd recommend applying the "use none" ligature attribute to the style instead. A macro like this gets the job done:NisusUser wrote:Or maybe I just need to have a macro selects all text in the document (main text and footnotes) and then applies "Use None." Then I guess I could put the macro in the menu bar and run it each time I open one of those files. Any advice (or macros) are welcome
Code: Select all
Menu ':View:Style Sheet'
Menu ':Format:Paragraph Style:Normal'
Menu ':Format:Ligature:Use None'
The defaults are indeed set by the font, so unfortunately that's not going to be a solution for you here, as it sounds like this font's change of heart introduced this problem to begin with!And … in that same menu (Format > Ligature) there is "Use Default." Hmm. What's the default? Is there not some way I can change that? If so, that might solve my problem. Are the defaults set by the font?
Re: Bulk change of ligature setting in fonts?
HI -
regarding ligatures - you can switch ligatures (if offered by a font) ON/OFF.
"Select All" in a document - FORMAT/FONT/SHOW TYPOGRAPHICAL PANEL – de/activate ligatures…
HE
regarding ligatures - you can switch ligatures (if offered by a font) ON/OFF.
"Select All" in a document - FORMAT/FONT/SHOW TYPOGRAPHICAL PANEL – de/activate ligatures…
HE
MacBook Pro i5
SSD 840/850 Pro
High Sierra 10.13.6
Nisus Writer Pro 3.4
SSD 840/850 Pro
High Sierra 10.13.6
Nisus Writer Pro 3.4
Re: Bulk change of ligature setting in fonts?
But when I do that I get a message saying, "Multiple fonts are currently selected". So it lets me do nothing. Is it that way for you, too, if you have more than one font in the document?Elbrecht wrote:regarding ligatures - you can switch ligatures (if offered by a font) ON/OFF.
"Select All" in a document - FORMAT/FONT/SHOW TYPOGRAPHICAL PANEL – de/activate ligatures…
Re: Bulk change of ligature setting in fonts?
That may be the best thing to do. Should the macro specify which font? Seems based on the other comment here, that it's not normal / accepted to change all fonts at once, and I suppose there might be a case where you'd want another font to have ligatures.martin wrote: If you really want to have a macro go through a whole folder of documents, it's possible to automate that as well. Please let me know if you're interested in such a thing.
Just thinking out loud here. I haven't tried the change of the normal template yet.
Re: Bulk change of ligature setting in fonts?
HI –
Ligatures are for readability - mostly. Change only if not…
HE
yes ligatures are font related - not changing your text. There is just a mechanism to change normal "st" to "st ligature" – or not… Each different font offers different mechanism(s) or not – so each font is to be handled seperately.But when I do that I get a message saying, "Multiple fonts are currently selected". So it lets me do nothing. Is it that way for you, too, if you have more than one font in the document?
Ligatures are for readability - mostly. Change only if not…
HE
MacBook Pro i5
SSD 840/850 Pro
High Sierra 10.13.6
Nisus Writer Pro 3.4
SSD 840/850 Pro
High Sierra 10.13.6
Nisus Writer Pro 3.4
- martin
- Official Nisus Person
- Posts: 5228
- Joined: 2002-07-11 17:14:10
- Location: San Diego, CA
- Contact:
Re: Bulk change of ligature setting in fonts?
The macro does not need to specify or know which font(s) are used in your documents. Ligatures can be disabled in a font neutral way via the "use none" ligature attribute.NisusUser wrote:Should the macro specify which font? Seems based on the other comment here, that it's not normal / accepted to change all fonts at once, and I suppose there might be a case where you'd want another font to have ligatures.
The reason the typography panel doesn't work with multiple fonts is because each font can define its own set of distinct typographic features. For example, some fonts have proper small caps or unique glyph variants, while other fonts have no such features.
Re: Bulk change of ligature setting in fonts?
I want to use ligatures and kern only for special characters and not for the other. Is there a way in NWP to specify special ligatures only for some characters and not for the others. I tried to change ligatures kern but it goes on all the characters and i don't want that
Thank's for answer
Thank's for answer
- martin
- Official Nisus Person
- Posts: 5228
- Joined: 2002-07-11 17:14:10
- Location: San Diego, CA
- Contact:
Re: Bulk change of ligature setting in fonts?
Sure, you can accomplish that using a macro. You'd have to run it any time your document changes, so the macro can update the ligature options and/or kerning. The macro wouldn't be very complicated. Basically you'd just want to find all these special characters and turn on ligatures.msebban wrote:Is there a way in NWP to specify special ligatures only for some characters and not for the others.
As a simple example, let's suppose that you want to turn on ligatures for digits (0-9) and turn ligatures off for all other characters. The macro might look like this:
Code: Select all
Select All Document
Menu ':Format:Ligature:Use None'
Find All '[0123456789]', 'E'
Menu ':Format:Ligature:Use All'
Re: Bulk change of ligature setting in fonts?
good solution but indeed it's only for 4 characters that i want this special ligature for special characters of transliteration and i asked is there a simple way than running a macro each time i change the doc or at end of writing?
- martin
- Official Nisus Person
- Posts: 5228
- Joined: 2002-07-11 17:14:10
- Location: San Diego, CA
- Contact:
Re: Bulk change of ligature setting in fonts?
If running a macro at the end of writing is inconvenient, how would you prefer to accomplish the task?
If you don't use these characters often, you could add a glossary expansion for them. In other words, instead of typing the character itself, you'd type some abbreviation that would expand to the appropriate character with the desired font options already applied.
If you don't use these characters often, you could add a glossary expansion for them. In other words, instead of typing the character itself, you'd type some abbreviation that would expand to the appropriate character with the desired font options already applied.
Re: Bulk change of ligature setting in fonts?
i'm gonna try the macro
if not i need to find a way to build these characters with ligature insert them in a customize special characters palette
if not i need to find a way to build these characters with ligature insert them in a customize special characters palette
Re: Bulk change of ligature setting in fonts?
I continue to struggle with ligatures. I'm using NWP 2.1.3. I save a document after having applied Ligatures > Use None to the entire text. When I re-open it, that setting is gone. Even putting "No ligatures" in the paragraph style doesn't seem to "stick." You must re-apply the paragraph style for it to remove the ligatures. I think at least part of the problem is with the font (it somehow has ligatures on by default), but I need to use this font. Ideas?
The font can be found here, if anyone else want to try it: http://vlkk.lt/palemonas
The font can be found here, if anyone else want to try it: http://vlkk.lt/palemonas
Re: Bulk change of ligature setting in fonts?
You should uncheck ligatures from the Typography panel for your Normal style from the Format:Font:Show Typography Panel menu. Note that some text in Normal style with only Palemonas font applied must be selected for the font's typography options to be revealed.) Then redefine your Normal style from the selection. This will add the "Typography Options" to your Normal style in the Style Sheet.
Re: Bulk change of ligature setting in fonts?
Thank you, Hamid. This does seem to work.Hamid wrote:You should uncheck ligatures from the Typography panel for your Normal style from the Format:Font:Show Typography Panel menu. Note that some text in Normal style with only Palemonas font applied must be selected for the font's typography options to be revealed.) Then redefine your Normal style from the selection. This will add the "Typography Options" to your Normal style in the Style Sheet.