Code Monkey home page Code Monkey logo

Comments (4)

dyacob avatar dyacob commented on June 29, 2024 1

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.

mcdurdin avatar mcdurdin commented on June 29, 2024 1

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.

mcdurdin avatar mcdurdin commented on June 29, 2024

How would this work with line wrapping?

from keyman.

mcdurdin avatar mcdurdin commented on June 29, 2024

Could this be implemented without changes to Keyman with the use of keyboard options?

from keyman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.