French typography : automatic no-break before ? ; : !

Feature requests, and in-depth discussions of features and the way Mellel works

Moderators: Eyal Redler, redlers, Ori Redler

Post Reply
ID
Got the styles thing figured out
Posts: 7
Joined: Tue Mar 20, 2007 3:38 pm
Location: France

French typography : automatic no-break before ? ; : !

Post by ID »

Hi everybody!

This is my first post, I hope it will work!


In French, one has to insert a space before the "!", "?", ":" and ";", just like before the french quotation mark.

Je vous donne un exemple : Vous voyez ? Je laisse un espace avant ces signes ; dans les autres langues on colle le signe à la lettre du dernier mot, mais pas en « français » !

Of course, one cannot just type a space: you could get something like

Au secours
!

which isn't indeed very interesting.

So you should insert a no-break space, but this is rather a long procedure for very common things to type.

When I select the French quotation in the Mellel preferences, Mellel automatically set a no-break space at the right place. Why not implement this not only for French quotation but also for ? ; : and ! in the Typography preferences ?

Or we also could do like MS Word : if you select French as typing language, Word automatically inserts a narrow no-break space before ; : ? and !

Regarding the poll : writing French without this feature really is a problem, which makes Mellel not the leading Word processor for Mac os X... So in my opinion, it is urgent (because otherwise Mellel would be the leading one). But how many do actually use Mellel for writing French ?
Reiner
Knows everything, can prove it
Posts: 475
Joined: Thu Oct 20, 2005 5:48 am
Location: Germany

Re: French typography : automatic no-break before ? ; : !

Post by Reiner »

ID wrote:So you should insert a no-break space, but this is rather a long procedure for very common things to type.
This is not an argument against your request for automically inserted narrow non-break-spaces, which sounds very useful as you suggested. But you can easily insert no-break-spaces without using the mouse and clicking through the menu: Just use the spacebar while holding option-key pressed.

If I'm not wrong there are no shortcuts for other spaces, what would be very handy too.
Reiner
ID
Got the styles thing figured out
Posts: 7
Joined: Tue Mar 20, 2007 3:38 pm
Location: France

Shortcut

Post by ID »

Thank you for the shortcut, Reiner: you prove you know everything!

It will be very useful to me, so long as we have to wait for the automatic insertion, which, I'm sure, will be implemented one day in Mellel.

Auf Wiederlesen!
ealvarez
Knows everything, can prove it
Posts: 130
Joined: Fri Mar 17, 2006 6:44 pm

Re: French typography : automatic no-break before ? ; : !

Post by ealvarez »

ID wrote: But how many do actually use Mellel for writing French ?
I do! And I would be curious to know how many we are too! : )
Mart°n
Knows everything, can prove it
Posts: 672
Joined: Fri Oct 21, 2005 2:09 am
Location: Germany

Re: French typography : automatic no-break before ? ; : !

Post by Mart°n »

In the meantime you could either use one of the “type it for me” applications like

• Typinator http://www.macility.com/products/typinator/
• TextExpander http://smileonmymac.com/TextExpander/
• TypeIt4Me http://ettoresoftware.com/EttoreSoftwar ... It4Me.html or
• Presto http://www.app4mac.com/store/index.php? ... rrency=eur

to automatically replace a typed “?” by a “narrow-nobreakspace+?” or use Mellel’s find and replace feature to build a set of find & replace actions leading to the same goal. Such a set could search for “space+?” and replace it with “narrow-nobreakspace+?” and the like for all the other characters like ; ! and :

Then you could run the action from time to time to update your document.

Not the most elegant solution but maybe a workaround until the feature will be built into Mellel.
palazzo
Got the auto-title mojo working
Posts: 17
Joined: Sat Nov 24, 2007 9:47 pm

Re: French typography : automatic no-break before ? ; : !

Post by palazzo »

I do, and I agree the next best thing to having a narrow space shortcut is to do a search and replace. Other than that, I have issues with the US-International keyboard layout interfering with the "smart" quotes functionality. Explanation: since double quotes in the US-Intl keylayout dubs as trema/umlaut and single quote as acute accent, when I type them they just sit there waiting for a combination key. Mellel then won't recognize the quotes as quotes and they aren't "smarted" (or « smarted » or »smarted« or ‚smarted‘ or whatever) but stay straight and ugly. Word, OpenOffice and Pages do however treat these quotes properly as soon as they notice the quotes haven't combined to form accents.
--
MacBookPro
Intel Core2Duo 2.33 GHz
2.0 GB RAM
OS 10.5.7
suavito
Knows everything, can prove it
Posts: 135
Joined: Sun Mar 25, 2007 11:16 pm
Location: Germany

Re: French typography : automatic no-break before ? ; : !

Post by suavito »

And when the typography features are overhauled please don't forget to add an apostrophe function like Leopard already had in a very smooth version and Snow Leopard in a not so smooth anymore version:

A single ' can be an opening or closing single quotation mark—which could in German look like this: ›text‹.
Or it could be an apostrophe, when it is [alphanumerical]'[alphanumerical], for example: it’s.

Mellel has allowed to choose the kind of quotation marks you want (in German there are three different kinds you can choose from) for quite some time. Apps using the Apple text system only have this since 10.6. But Mellel need an apostrophe substitution as it is very annoying when only almost every program does this and you have to keep an eye on this. (Text expansions apps are of no help because as far as I know not a single one works with regular expressions which you would have to here.)
The finger is the most popular bird.
rpcameron
Knows everything, can prove it
Posts: 980
Joined: Wed Oct 26, 2005 12:48 am
Location: IE, CA, USA

Re: French typography : automatic no-break before ? ; : !

Post by rpcameron »

suavito wrote:And when the typography features are overhauled please don't forget to add an apostrophe function like Leopard already had in a very smooth version and Snow Leopard in a not so smooth anymore version:

A single ' can be an opening or closing single quotation mark—which could in German look like this: ›text‹.
Or it could be an apostrophe, when it is [alphanumerical]'[alphanumerical], for example: it’s.

Mellel has allowed to choose the kind of quotation marks you want (in German there are three different kinds you can choose from) for quite some time. Apps using the Apple text system only have this since 10.6. But Mellel need an apostrophe substitution as it is very annoying when only almost every program does this and you have to keep an eye on this. (Text expansions apps are of no help because as far as I know not a single one works with regular expressions which you would have to here.)
The substitution of ([a-zA-Z0-9])'([a-zA-Z0-9]) to \1’\2 should not be the only way that ' becomes ’. What about elisions? Such as ’Ello? or ’cause? Or for numbers: Back in ’92 … If ([a-zA-Z0-9])'([a-zA-Z0-9]) to \1’\2 were to be used as the only basis, then all three of those examples would be typeset incorrectly, still requiring user intervention. I agree that the current situation is not optimal, but I haven't seen something better yet …
— Robert Cameron
ptram
Knows everything, can prove it
Posts: 105
Joined: Tue Nov 14, 2006 9:01 pm
Location: Recanati, I

Re: French typography : automatic no-break before ? ; : !

Post by ptram »

Within a few month, I will have to write in French very often. Is it mandatory to insert that space before punctuation, or is this optional? I hate it. Please let me avoid it without being plainly wrong...

Paolo
rpcameron
Knows everything, can prove it
Posts: 980
Joined: Wed Oct 26, 2005 12:48 am
Location: IE, CA, USA

Re: French typography : automatic no-break before ? ; : !

Post by rpcameron »

ptram wrote:Within a few month, I will have to write in French very often. Is it mandatory to insert that space before punctuation, or is this optional? I hate it. Please let me avoid it without being plainly wrong...

Paolo
No, it is not necessary, but it is the accepted practice. Not inserting the space is similar to using “” for quotations instead of «» (and —). When you write in a particular language, it is best to follow the standards and practices of typography/style for that language. For French, this means inserting a non-breaking space before ; : ? ! », and after « —.
— Robert Cameron
suavito
Knows everything, can prove it
Posts: 135
Joined: Sun Mar 25, 2007 11:16 pm
Location: Germany

Re: French typography : automatic no-break before ? ; : !

Post by suavito »

rpcameron wrote: The substitution of ([a-zA-Z0-9])'([a-zA-Z0-9]) to \1’\2 should not be the only way that ' becomes ’. What about elisions? Such as ’Ello? or ’cause? Or for numbers: Back in ’92 … If ([a-zA-Z0-9])'([a-zA-Z0-9]) to \1’\2 were to be used as the only basis, then all three of those examples would be typeset incorrectly, still requiring user intervention. I agree that the current situation is not optimal, but I haven't seen something better yet …
I totally agree to you both in the point that this substitution does not cover all cases of apostrophes and that I haven't seen anything better yet. The Leopard substitution—and Bean’s!—just were the best I know.

As far as I can see it the substitution algorithm CAN not cover all cases. Because it would need some understanding of the text which it of course does not have. You might think of adding a list of common elisions like ’cause and let the user add more to that list. This should somehow collaborate with the spelling correction. But even if that worked it would only be still no more than approximately.
The finger is the most popular bird.
moineau
Already downloaded the guide
Posts: 34
Joined: Wed Jun 11, 2008 6:01 am
Location: France

Re: French typography : automatic no-break before ? ; : !

Post by moineau »

This topic is six years old, but 3.2 is not there yet... :shock:

Please do something about automatic non-break spaces for French, your program is great!

EDIT - :idea:
As for now, the only way to auto insert narrow non-break space is the Find / Replace function (copy/paste your sign with its nb space in the replace window) -- better than nothing.
JFM
Got the auto-title mojo working
Posts: 15
Joined: Tue Mar 21, 2006 8:48 am
Location: Switzerland

Re: French typography : automatic no-break before ? ; : !

Post by JFM »

Indeed, it would be nice to have the option with a narrow non-break space. I am French-speaking too: in the meantime, when I want to have the space, I use the spacebar + option key. However, I think this creates a normal space, and not a narrow one. For getting a narrow one, I had created my own combination, using Ukulele. It worked with some of the most common fonts, although not with all word processors.

In case the narrow non-break space becomes available, it should not automatically be activated with the use of the French language, but be an option. Indeed, while I think it is a good idea to follow this typographical rule, it is not universal: in my native Switzerland, the space before some signs is not required by local typography, although some people adopt it nevertheless. Thus Paolo could say he has embraced the "Swiss option"...

And yes, I do quite often write texts in French with Mellel. There are probably quite a number of Mac users doing it, since Mellel is so pleasant for typing (although I continue to be sometimes perplexed by its peculiar ways of approaching things, but if one learns how to use it, it works).
marcloup
New to all this
Posts: 3
Joined: Tue Aug 19, 2014 9:22 pm

Re: French typography : automatic no-break before ? ; : !

Post by marcloup »

Back to this topic six years later.... It seems that nothing really changed since 2013, or maybe I am wrong.

Did anyone find a better way than copy/paste to insert narrow no-break spaces?

I also have a new problem, when I type the apostrophe I get this ['], but I would like to get this [’], which on my keyboard corresponds to the shortcut (cap+option+!).

Does anyone know a better way to get a curved apostrophe?

Yes I'm another one using mellel for writing in French.
jannuss
Knows everything, can prove it
Posts: 843
Joined: Thu Oct 20, 2005 5:35 am
Location: Israel

Re: French typography : automatic no-break before ? ; : !

Post by jannuss »

Hi Marcoup,

The question of straight versus curved apostrophes is also a font issue.

With an American English keyboard, cap-option-] gives a right-curving apostrophe for some fonts and q right-straight one for others.
Similarly, cap-option-[ sometimes gives a left-curving apostrophe and sometimes left-straight.

I tried using the French keyboard and found the left-curving apostrophe under cap-option-4
But, again it's font dependent

Now, please explain what is the issue with a-and-q and w-and-z and help; I can't find the question mark !!

Janet
Post Reply