Comments (4)
I think it wouldn't, that would be an acceptable sacrifice. Manual line breaks are assumed. Fortunately, the samples I've seen (stone carved) don't have a lot of words per line, so in reproducing them the user would input the manual line break anyway and the end of the line on the page is rarely reached.
from keyman.
You could also look at context to determine the current writing direction:
any(ltrletter) + any(key) > context index(ltrout, 2)
any(rtlletter) + any(key) > context index(rtlout, 2)
There are deeper questions on directionality which Keyman cannot answer -- is the script in Unicode, do the characters have directionality properties? Keyman cannot directly manipulate an app's paragraph directionality, although it can insert RTL or LTR embeds which have a similar effect for many cases.
I'd prefer to see this implemented in a keyboard and taken as far as possible there before we invest energy in Keyman itself. Perhaps an experimental keyboard will highlight things which Keyman could do which a keyboard wouldn't be able to?
I will go ahead and close this as an issue on this repository -- I look forward to seeing something appear in the Keyboards repo 😁
from keyman.
How would this work with line wrapping?
from keyman.
Could this be implemented without changes to Keyman with the use of keyboard options?
from keyman.
Related Issues (20)
- chore(web): determine cause of WebKit-testing concurrency issues + resolve if possible
- bug(android): invalid webview height in system keyboard HOT 3
- bug(windows): backspace delete selected text and an extra character HOT 1
- feat(android): Publish keyman-engine to Maven
- bug(developer): index() works without a comma between parameters in kmcmplib compiler
- chore(developer): address Test (Keyman - Developer) test instabilities
- feat: Adding another good sample for https://keyman.com/developer/keymanweb/sample1
- bug(linux): Crash on the terminal when trying to type n+> using the SIL (IPA) keyboard. HOT 1
- bug(web): automated test instability for prediction test
- feat(developer): Make it easier to create a new project and attach an existing KMN file to it feat: HOT 2
- bug(android): font cropped when long pressing the key on the landscape view.
- bug(linux): AttributeError: module 'requests_cache' has no attribute 'install_cache'
- bug(developer): kmc: TypeError: Cannot read properties of undefined (reading 'description')
- docs(linux): document how to migrate from kmfl to keyman/create .kmp files for Keyman out of .kmn used with kmfl HOT 1
- bug(linux): Enter does not insert a line break in gnome-text-editor on Ubuntu 24.04 (X11)
- bug(linux): can't select text with keyboard on Ubuntu 24.04 (Wayland) HOT 2
- bug(developer): Keyman Developer needs to be restarted before Keyboard package will compile
- feat(web): add support for OS-provided user dictionaries
- change(web): remove ES5 support
- chore(mac, ios): CI builds are down due to license agreement update
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 keyman.