ajaxorg / ace

Ace (Ajax.org Cloud9 Editor)
https://ace.c9.io
Other
26.74k stars 5.28k forks source link

Support varying character widths #460

Open fjakobs opened 13 years ago

fjakobs commented 13 years ago

CM2 does it by measuring the actual text and not a generic string.

https://github.com/marijnh/CodeMirror2/blob/master/lib/codemirror.js#L1209 @gissues:{"order":41.6149068322984,"status":"backlog"}

fjakobs commented 13 years ago

This includes non monospace fonts and asian characters

sirupsen commented 12 years ago

Any updates on this?

fjakobs commented 12 years ago

I have it in an experimental branch. It doesn't support soft wrap yet and has some issues with tab characters but otherwise it works very well already.

https://github.com/ajaxorg/ace/tree/varchar

sirupsen commented 12 years ago

Will it be fixed to one line-height, or is it possible to allow multiple line-heights in the document?

fjakobs commented 12 years ago

variable line height is currently not planned.

jevakallio commented 12 years ago

Are there any plans to continue work on this feature in the (near-ish) future?

nightwing commented 12 years ago

not in next 2-3 months.

vegetableman commented 11 years ago

Thanks @fjakobs , it worked beautifully with different font families.

bvibber commented 11 years ago

This has been biting us at Wikipedia -- we're using ace to do on-site editing of Lua, JavaScript etc which may include localized text in all sorts of languages.

I've updated @fjakobs 's older patch to run on current ace master: https://github.com/ajaxorg/ace/pull/1608

Appears to work for me in some ad-hoc testing.

bvibber commented 11 years ago

For handy testing, here's a (temporary) live copy built from the pull req: https://brionv.com/misc/demo/ace/build/kitchen-sink.html

FahmiA commented 10 years ago

Any progress with this bug?

georgephillips commented 10 years ago

Any news on this feature?

wohali commented 10 years ago

We'd really love to see this merged in; it looks like potentially @brion or @fjakobs 's branches have workarounds for variable width characters. I also believe #1797, #1153 and #1961 are duplicates of this ticket.

Steps to recreate: paste this text into an ACE editor and cursor around, you'll see the cursor will land in the middle of the double-wide characters such as the roman numerals.

ⅠⅡⅢⅣⅤⅰⅱⅲⅳⅴ ᠠᠡᠢᠣᠤᠥᠦᠧᠨᠩ ༐༑༒༓༔༕༖༗༘༙ بةتثجحخد

Screenshot: capture

honzajavorek commented 10 years ago

Hi, what's status of this issue? Can we be of any help?

nightwing commented 10 years ago

@honzajavorek the latest version of somewhat working attempt to fix this issue is in #2002, it's still not ready to merge, and wrapping support may require major changes.

dwelle commented 9 years ago

+1

psankar commented 9 years ago

I am trying to create a Tamil language text editor and I too ran into this issue. The cursor should move across letters+diacritics whenever I press the arrow keys. But instead it moves for each letter and each diacritic making it useless. Are there any plans to fix this issue ? I can give a sample HTML file to explain my problem if you need.

GerkinDev commented 8 years ago

Still having this problem under certain special conditions with Chrome... Works well on a site, bugs on another.

danvim commented 8 years ago

Still having trouble entering both Chinese and English together. Chinese characters are all monospaced, but 1 Chinese character is like 2 ASCII monospaced characters in width.

cwaldron commented 7 years ago

Does Ace currently work with variable width Latin character set (i.e. English and Spanish)?

arathims commented 7 years ago

We are having issue with Thai characters and some other similar languages too, So +1 please :)

s20208413 commented 7 years ago

+1 (using ACE version 1.2.8)

sauron918 commented 7 years ago

Since 2011 any updates?

PawelTroka commented 7 years ago

Any updates on this?

vlvagerviwager commented 7 years ago

Does anyone know if there is a workaround for this? I would like to use a variable width typeface in the editor.

dwelle commented 7 years ago

@zky829 workaround is to use codeMirror. There. I've said it.

Erbenos commented 6 years ago

Any news on this?

hperrin commented 6 years ago

+1

blurymind commented 5 years ago

+1