Hi :),
On 31/05/12 19:55, Carlos Jenkins wrote:
> Hi Ofrray,
>
> Thank you very much for testing Nested, your feedback is very appreciated.
Thank you for your quick response.
> Windows support is quite difficult, in particular because the same version of
> Gtk+ behave a little different on Linux that on Windows. The font you're saying
> are the DejaVu fonts, that actually are packaged with Nested. It is supposed
> that the Windows installer should register those fonts, maybe it's not doing it
> or maybe on Windows a restart is required to re-index the available fonts, don't
> know.
>
> About the vertical space I would like you to explain it a little more to see if
> I can fix that behavior.
May be was a permissions problem. I don't use Windows even when is
preinstalled on a machine, so I installed Nested on a Windows machine at
University. May be we don't have all permissions there to get a proper
behavior. The next time my students use Nested I will try to see again
about the vertical space problem.
> That can be done, I just need to change some behavior to not create the
> configuration folder in user's home and instead use the installation directory.
> And a packager for PortableApps, or whatever platform you use.
Nice. That would help a lot of people carrying nested with them.
> I know Red Notebook, their website design is inspired by a design I made for
> Clementinehttp://
www.clementine-player.org/ jeje. And I stole a lot of ideas
> (and some code) from them jeje (with the proper attribution and copyright
> notice). I've already checked that feature, If I remember correctly, the just
> used Webkit (which is currently unavailable in Nested for Windows) facility to
> print a website to a pdf file, so the output is the same as if you printed a
> website.
So, you're also the author of clementine! I remember using it for a
while, before going with songbird, but was a pleasant experience and is
nice to see the code sharing thing between Redmine and Nested. Maybe you
can take a look of Leo. Is kind of difficult to grasp at the beginning,
but is a really powerful outliner and having its ideas in more apps
would be really nice (the ones about invisible nodes, clones and larger
documents made from small ones came from Leo).
> Nested was conceived as a document editor exclusively, because IDEs concern is
> quite different and it exists already great IDEs out there (I use Geany most of
> the time and Eclipse for some Java EE stuffs). That design decision impacted a
> lot the way Nested was written, adding IDE options at this point will require a
> great rewrite. I'm adding command line options for Nested, so in the future you
> could publish a document in Nested without the need of opening the GUI.
Command line usage of Nested is a really killer feature (you read my
mind, even without saying anything in the first mail). This idea of
having a "end user" program and "developer" programs is kind of dystopic
to me, having programs in each extreme (Nested for "end users", Leo for
developers). We have some examples of programs that bridge the gap like
Mathpiper or Smalltalk, but they are niche products. I would like to see
Nested in that place where start to blurring that distinction.
> That UTF-8 problem is already fixed in the development version. Also, the
> postproc/preproc is kinda broke for some cases, in particular when you need to
> include " and ' characters, like this case... I need to fix that. The problem is
> Nested, not txt2tags in that case, I assume complete responsibility in screwing
> that up.
Well I have tested the development version and there is no problem with
utf-8 support in the html export.
>
> Is like if the superset of postproc directives is becoming incompatible with
> the original subset of txt2tags.
>
> That's quite true. The superset is implemented before or after the txt2tags
> processing, so you will always have some inconsistencies and incompatibilities.
> The problem is that txt2tags is now centered on expanding their output catalog,
> not refining it (as some bugs reports have already some solutions for improving
> some target and are still unimplemented), nor expanding the language (in
> particular because expanding the language is not in their scope and one
> additional feature will need to be implemented in all the currently supported
> output languages, so... big problem). About this, I don't see any easy solution,
> other than fork completely txt2tags, remove unused outputs and implement the
> superset in it's internal workflow. txt2tags is 8000+ lines long, so it's not
> and easy task. Anyway, the txt2tags packaged in Nested has already a lot of
> modifications to refine the xhtml strict and latex output.
Seems that the solution proposed by Eric about a modular txt2tags and
asking permissions for writing in their repo is the solution instead of
a complete fork. I have been thinking, before knowing of Nested about
how to extend txt2tags without breaking it severely. I don't know If
what I thought have some sense but (following the example of reST
markup) I thought of having some kind of special comments with
parameters, something like:
%! code-block
```
bash
<some bash code>
```
or
%! code-block
```
latex
<some LaTeX code>
```
or
%! code-block
```
amath
<some ASCII Math code>
```
So if classical txt2tags doesn't understand what to do with code-block
it will present the raw code with their intended syntax to the normal
user in different outputs. Something similar would happen for:
%!img: scale=50%
[myimage.png]
By the way, the code for scaling images putting their size on the name
is strange. I like the transliteration facilities of Nested, is just
strange... but anyway would be nice to have also a scale percentage for
this, say something like [60%-myimage.png]
> Which would be the proper postproc usage to insert "<meta name="utf-8" />"
> in the header of the xhtml output?
>
> To patch txt2tags. Try also what Eric is suggesting (%!encoding: utf-8), that
> would be the correct way to do it in txt2tags.
Yep I had tested this on stable release and was not working. The key was
to used the trunk version.
> I'm also having problems with pdf output getting this when I tried the export:
>
> """
> ! Package inputenc Error: Unicode char \u8:‐ not set up for use with LaTeX.
>
> See the inputenc package documentation for explanation.
> Type H<return> for immediate help.
> ...
>
> l.128 ...iesta que "el gobierno de Bogotá 2012‐
> 2016
> """
>
> Have you tried adding:
>
> \usepackage[spanish]{babel}
>
> To the LaTeX header (Document properties>> LaTeX>> Header)
>
> This is the currently LaTeX header I'm using in my documents:
[...]
Thanks. I will try it in my LaTeX and pdf exports.
>
> and this message is displayed in a new window that takes the control over
> Nested until is closed. My suggestion would be to send this kind of message
> to a new tab, similar to the already present "Markup" and "Preview".
>
> This has changed on the development version, I developed a LaTeX compilation
> summary dialog (screenshot attached) which is much more user friendly.
>
> Running pdflatex on the tex exported file works fine.
>
> You can set the check "Export to PDF" in the LaTeX properties, it will run
> pdflatex for you on each publish (If it can find it, it assumes on Linux that
> pdflatex is located in /usr/bin/pdflatex). Also, in the development version, if
> you have rubber (compilation system for LaTeX) it will use it instead.
I have being using export to pdf directly, but with the modal windows of
the LaTeX message taking control of Nested, using pdflatex was the way
to generate pdf when I had the hyphen problem. With your preamble and
the new modal non obstrusive window, I think that I will not have this
problem.
> - (In)visible nodes: giving the possibility to not export some parts of the
> document in the outputs, like HTML, plain text or
> LaTeX/pdf.
>
> That is easy, I'll add it to the TODO list.
Thanks.
> - Transclusion: having the possibility to create a document from small
> sub-documents.
>
> That is more complicated. I'll think how to do it.
>
> - Clones: Having different ways to organize the same nodes in different
> outputs, so a single document can have the same
> nodes in different subtrees and produce particular outputs from them.
> This is a complement for the idea of a single source
> and multiple targets, in the sense that, for multiple targets would be
> nice to not always include the same info.
>
> That is even more complicated, for now you can use target comments, so you can
> have some content displayed in some target and another content in other target.
> I know is not near what you're requiring, but maybe you can use it as a workaround.
Thanks. Take a look of Leo and its reStructuredText support. It uses xml
and a directed acyclic graph as a way to treat documents. I would not
like to change the storage format from clean txt2tags to clumsy xml, and
I think that, at some point is better to think in documents as graphs
and txt2tags as a plain text for its nodes and maybe YAML or JSON for
all the graph structure, but here I just speculating (hopefully this
will bring better ideas on Nested).
> You're welcome. I invite you to try the last version directly from the
> repository and run it in your Arch Linux, the development version has a lot of
> improvements like spell checking (on Windows using LibreOffice dictionaries),
> LaTeX log viewer, custom LaTeX title page, better formatting of lists and link
> button, timestamp based undo/redo (not token based like Nested 1.2.2), search
> and a lot of bug fixes.
>
> I'm in the middle of a big refactoring and implementing bibliography support for
> Nested, I expect to have a beta release in two months.
Really nice. I'm already enjoying the trunk version and will be waiting
for the beta. I can't promise anything yet, but I would like to play
with the idea of supporting txt2tags in Leo... sadly I'm not a
programmer, but seeing such nice apps is inspiring and one wants to help
with the coding thing.
Cheers,
Offray