Search:   Help

Developers' side bar

Selected categories

Edit

Shared groups

Links

Ranges

Categories: Development, Misc
<< | Page list | >>

Notes towards implementing Ranges as first-class objects (alongside Insets) in LyX

Requirements / Ideas

  1. 'range-select' lfun which acts as follows: select smallest range around cursor position / current selection; such that if the cursor is embedded inside an hierarchy of a few ranges, first the smallest range is selected, then the next-larger one, etc. (see http://permalink.gmane.org/gmane.editors.lyx.devel/96660, or similar but not as good http://thread.gmane.org/gmane.editors.lyx.devel/96391)
  2. By default, during selection select entire range at once? (see http://permalink.gmane.org/gmane.editors.lyx.devel/96654)
  3. the status bar shows the hierarchy of objects we are in (in our case, it could be "Branch, Footnote"). ... clicking on one of this labels selects the corresponding object (see http://permalink.gmane.org/gmane.editors.lyx.devel/96643)

Algorithms

  1. Translating from position-based ranges to a nested presentation (e.g., for latex output):
The problem is that in the buffer, ranges are represented only as <from,to> pairs; however, ultimately we are going to have to translate this into nested ranges, for the latex output (where commands/environments are nested). see thread http://thread.gmane.org/gmane.editors.lyx.devel/95997/focus=96031
  1. Representing ranges in the .lyx (XML format) file:
The problem is similar to the previous one; except that now, even in the .lyx XML (which must be legally nested) we want to retain the <from,to> based format. see thread http://thread.gmane.org/gmane.editors.lyx.devel/95997/focus=96082

Use cases

Implementation details

Open issues / keep in mind

  1. How to differentiate between
\emph{emphasized} not emphasized \emph{emphasized}
and
\emph{emphasized \emph{also emphasized} emphasized}

Categories

Development, Misc

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2011-04-17 17:36 UTC