Hello Steve,
stefur wrote:
IMHO, Mellel had solved this problem in a better manner.
Hold your horses, there are 1001 answers to your question, and each and every one of them depends on factors that you haven't even mentioned yet.
when I use guillemets (with Quickfix), it works for the double guillemets (>> or <<)
QuickFix—that's true— is a text substitution feature, but it requires that you type a space (tab or a punctuation mark) after the abbreviation to trigger the expansion; and that space is (unfortunately) added to the text. In other words, you get spaces where no spaces are supposed to be, so I don't understand when you say it works for you for the double guillemets (>> or <<)
If you prefer a text expanding solution, Typinator is perfect for this. It does not add any space after the text, unless you explicitly want a space. Unfortunately Typinator is not a part of Nisus.
In what language is the text you are writing?
Guillemet is used in so many different languages (<
https://en.wikipedia.org/wiki/Guillemet>)
If you usually write in English and just need Guillemet occasionally for quotes, I would just type them as Philip suggested. Or, if that's not cool enough, then assign the text the proper language attribute (via the Format menu > Language > …), use your normal keyboard layout, and type (English) quotation marks as usual. They will be automatically converted into Guillemet. … At least that's what I would expect. I did not test all the 37 languages that use Guillemet.
But I did test French. I used the ABC Extended keyboard (= "US Extended" in earlier OS system versions) to write some French text. I used the usual English way to type the quotation marks " ", and those quotation marks were instantly transformed into Guillemet « ». Single Left- and Right Pointing Angle Quotations "‹" and "›" had to be entered manually though. They were not automatically transformed after I entered ' on the ABC Extended keyboard.
How about using a simple, but effective macro with a keyboard shortcut (I use Command j e):
Code: Select all
# Inserts Guillemet with non-breaking spaces
Type Text "« ‹› »"
Find "‹›", 're'
# End of macro
The macro will insert Guillemet with non-breaking spaces, because that seems to be required in French (see Wikipedia). If that's not true (anymore), or you are not writing in French, then remove the non-breaking spaces from the macro.
- 1.png (7.73 KiB) Viewed 17715 times
The macro takes into account the possibility that you may want to use a Single Angle Quotations inside the main quotation. If that's the case, press the left arrow key on your keyboard and start typing until you reach the position where you want to type the inside quotation (‹Hamlet› was your example).
If you don't need a quotation inside a quotation, then just start typing, the preselected ‹› will be overwritten. When you are finished, press ctrl + e to jump to the end of the paragraph, i.e. jump out of the Guillemet. Ctrl + e, as you may know, is a keyboard shortcut built into OS. The opposite shortcut is ctrl + a. It will place the insertion point at the beginning of the paragraph.
__________
Þorvarður