Live data from Hacker News

Best apps for writers

writersdigest.com

41–46 of 46 posts

Re: Best apps for writers

#41

Serious suggestion - semantic HTML5 with the tags in a decent IDE. You may laugh but I am serious. Language has moved on and it has been moving on for as long as there has been recorded history. With HTML5 you get the extra markup for 'section', 'article', 'aside' and there are other semantic elements that already exist - 'em' is not the same as 'i', it infers emphasis rather than making the letters italic. See the e…

This is basically what I've been doing except I use all custom tags with custom written stylesheets. You can have a lot more flexibility that way.

Re: Best apps for writers

#42

Serious suggestion - semantic HTML5 with the tags in a decent IDE. You may laugh but I am serious. Language has moved on and it has been moving on for as long as there has been recorded history. With HTML5 you get the extra markup for 'section', 'article', 'aside' and there are other semantic elements that already exist - 'em' is not the same as 'i', it infers emphasis rather than making the letters italic. See the e…

Can you post an example?

Re: Best apps for writers

#43
post #28

Serious suggestion - semantic HTML5 with the tags in a decent IDE. You may laugh but I am serious. Language has moved on and it has been moving on for as long as there has been recorded history. With HTML5 you get the extra markup for 'section', 'article', 'aside' and there are other semantic elements that already exist - 'em' is not the same as 'i', it infers emphasis rather than making the letters italic. See the e…

Well you can't just leave us hanging, what is a good ide for authoring good semantic html5?

I am no expert on IDEs - I just use PHPstorm as it has uses for authoring SVG files that you don't get with Inkscape or other proper programs for SVG. I do put my docs on a Apache server that is localhost but the built in server of PHPstorm is pretty good. You get green squiggles under spelling mishtakes rather than angry red lines, you also get proper red squiggles for errors in HTML.

I don't need to use extensive facilities when writing HTML, the 'reformat code' button does come in handy and that is about it.

I think you get this in all IDEs. So my advice is to stick with what you know or go with VSCode. VSCode moght fall over with huge code bases but it 'War and Peace' is small compared to a codebase.

There is some vagueness about writing semantic HTML5, for instance, do articles go in sections or vice versa?

This does not help. I go with a main inside the body tag with that containing articles. Then in each article I put sections, asides and figures.

To keep my writing succinct I find that the html5 details/summary elements are really handy. You can write an article that has a paragraph of text and some bullet list of things then hide the waffle in a details/summary element rather than have it linked to on a separate page.

You can put sections, articles, more details/summary disclosure elements in a details/summary combo.

This is a world away from writing templates where everything is a div with classes and ids.

What I also recommend is a basic CSS stylesheet that loads a font with the font being variable width. Use that for the document, then use CSS grid to put some margins in so put header, footer, main in column 2 with the grid-template-columns set to something like 5vw 1fr 5vw. There is no need for 'reset.css' or other stuff, you have something pleasant to work with that can then be tinkered with over time, responsive out the box.

Re: Best apps for writers

#44
post #42

Serious suggestion - semantic HTML5 with the tags in a decent IDE. You may laugh but I am serious. Language has moved on and it has been moving on for as long as there has been recorded history. With HTML5 you get the extra markup for 'section', 'article', 'aside' and there are other semantic elements that already exist - 'em' is not the same as 'i', it infers emphasis rather than making the letters italic. See the e…

Can you post an example?

Well, the novel is not finished. However, here is one of my early efforts at trying to write clean HTML5.

https://www.maggie-shaw.co.uk/

If you go straight to 'view source' you can see what I have tried to do in constructing 'human editable' HTML. The 'sections' do not have 'titles' and could be divs as I just need some wrapper to get the full width banner images in the middle of each 'article'.

I had started this page with 'details/summary' disclosure elements but ended up mimicking that interface with the headers at the top of each 'article' and some scripting.

I also tried to use 'form' as a container for all calls to actions, even if this was not a real 'form', but just a way to show an image full screen.

I was trying to do a few new things so maybe the 'nav' container was what I needed. But I wanted buttons for accessibility. The burger menu should be a 'button' for accessibility too.

The code and use of elements on this page only has class attributes for things that change, not as general styling hooks. A lot is contrived and could be improved, but I think I got the general idea of 'separation of concerns'.

Re: Best apps for writers

#46

Earlier quoted context omitted.

Amen to that. I read a blog post somewhere (sorry, lost the reference) about a writer (non-programmer, mind you) who switched to Emacs for Org-Mode. Another extension that's great for writing/note taking is Deft [1]. Give it a directory (optional recursing) of .md, .txt, .org, etc. files, and it will let you filter through them instantly. I've been using this for a few years now and it's still my primary digital note…

Cool. I've heard of Deft, but haven't really tried it. Another great Emacs extension for writing is writeroom-mode: https://github.com/joostkremers/writeroom-mode

Thanks for posting this! Just got it and I love it!
Post reply on HN