Skip to content

Dashes‐In Name

Tristano Ajmone edited this page Jan 6, 2017 · 2 revisions

Testing how to achieve a dash in filename/title (since it treates dashes in name as spaces).

Problem Description

Glloum replaces normal hyphens (ie: Hyphen-Minus or U+002D) occuring in file names with spaces. This is good since it allows page titles with spaces using hyphens in names (Linux would have trouble handling filenames with spaces), but it also means you can't retain a desired hyphen in a Page title.

Solution: Use Unicode Hyphen

Use unicode character (Hyphen or U+2010) instead of - (Hyphen-Minus or U+002D).

In this page I've copied and pasted the hyphen directly from the text into the Page title.

Still looking for some Alt Code to print this hyphen using Numeric Pad.

See Gollum Issue #764, were @haggen mentions a workaround by using the unicode character (Hyphen or U+2010) as opposed to the - (Hyphen-Minus or U+002D).

Warning: Possible Issues

As @Jukka K. Korpela point out on a (SuperUser.com thread)[http://superuser.com/questions/524619/how-do-i-enter-a-hyphen-not-a-minus-symbol-on-windows-7/524687#524687]:

Beware that only a limited set of fonts contains HYPHEN, and when a program is forced to change font, HYPHEN from a different font may be unsuitable for use with your basic font. So if you wish to use HYPHEN, select a copy text font that contains it.

Clone this wiki locally