1. hyphenated words

I just discovered something interesting while trying to support context sensitive help for hyphenated words. Consider for example that there is a GTK3 html help file, "gtk-building.html". Now, I do realize that a hyphenated word is not a command...

In Geany or ed.ex, if you type in the hyphenated word, "gtk-building", it simply is not recognized as a word, even if it is included in the list of "function_other" Ed.ex doesn't recognize any part of a hyphenated word and reports the previous "legal" word as the current word. Neither Geany nor ed.ex will highlight a hyphenated word included in a list of other "kosher" words that are highlighted properly.

In Geany, if EuHelp is not used and the hyphenated word is passed to a browser in this manner" context_action_cmd=firefox -new-tab file:///home/kenneth/gtk3-html-3.8.0/%s.html Only the last part of the word is recognized, "build".

However; if you run "EuHelp gtk-building" from the command line, the full hyphenated word is recognized, reunited with its ".html" tail and so specific opened with a browser.

I have included these hyphenated words in gtk tag lists. Thinking that it would be useful to access the topic help files, even if the "word" wasn't a command and would have to be erased.

I suppose I should just delete such words that aren't really language components from any tag file. Although, by leaving them in a Geany tag file, the user is at least made aware of the resource file by that topic name and can very easily run "EuHelp gtk-word" in Geany's terminal interface and access that file very quickly.

Any comments? Should I include hyphenated topic words in Geany gtk tag files?

Regards, Ken

new topic     » topic index » view message » categorize

2. Re: hyphenated words

K_D_R said...

<stuff about hyphenated words>

What if you added the hyphen to the list of alphanumerics that can make up a word, and removed it from the math operators?

useless

new topic     » goto parent     » topic index » view message » categorize

3. Re: hyphenated words

useless_ said...
K_D_R said...

<stuff about hyphenated words>

What if you added the hyphen to the list of alphanumerics that can make up a word, and removed it from the math operators?

useless

Thanks for the suggestion! smile I'll play around with it a bit and see what happens.

Ken

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu