Comments (4)
Yeah, I don't think the cursor positioning code is particularly unicode-aware at the moment.
I'm not sure if I want to break the "no dependencies" pledge to do proper unicode segmentation, but we should definitely not panic in that case at the very least.
Fixing this without itertools might be slightly annoying. I might be okay with changing the wording of that pledge to "no other dependencies on other Bevy ecosystem crates."
from bevy_simple_text_input.
I put up #42 as a proof of concept for a fix. It's a bit ugly at the moment, but seems to work.
from bevy_simple_text_input.
I think depending on standard rust ecosystem crates is not such a grave sin. I can definitely understand not wanting to depend on other bevy crates given the instability of the ecosystem.
from bevy_simple_text_input.
I agree, and unicode-segmentation
specifically seems very inoffensive. I'd like to see what a solution utilizing it looks like.
from bevy_simple_text_input.
Related Issues (16)
- wasm: backspace and enter don't work HOT 1
- Get current text without pressing enter HOT 1
- TextStyle isn't updated when changed
- Undertanding implementation of `TextInput` HOT 2
- Cursor timer should reset on input HOT 1
- Cursor should not blink when text input is inactive
- Copy-paste feature HOT 1
- Add an example for getting and setting the text value HOT 1
- Provide a way for users to set the value of the text input HOT 3
- Make example styling consistent
- Cursor is shown when text input is spawned in an inactive state
- Newly spawned text inputs don't respect custom cursor positions. HOT 1
- Clear-on-submit behavior should be configurable
- Inner text node position should follow cursor position
- Umlaut leads to crash HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bevy_simple_text_input.