A few “kind” words about the current version of the Habr editor
Now let's talk about everything in order
And it will do! (c)
But first, let's go back to the beginning – where any article begins.
As you know, “The theater begins with a hanger” ((c) K.S. Stanislavsky), and the article begins with KDPV on the main page of the Habr website
It is easy to notice that the CDPVs in the text of this article and in the feed on the Habr website look “slightly” different, although theoretically the picture is the same.
The fact is that the Habr editor himself “tunes” the picture, adjusting it to his internal requirements.
For authors, the only restriction set in the “memo” is “Do not insert large (>1MB) images before the cut,” although this restriction is essentially optional – CDPVs of several MB are often found, sometimes with a resolution of tens of megapixels.
Well, the proportions of the pictures can generally be anything, the editor doesn’t pay attention to this. Well, maybe it will show the author how it will look in the feed, but the author, busy with other issues during the publication process, may not pay attention to this, and the picture will be cropped in height or width. This is a very common mistake when publishing – look at any page of the Habr feed, and try to open the KDPV from them in a separate window, probably at least a few pictures will not be the same as they are visible in the feed.
Of course, we can say that the author of the SSZB is himself to blame for not keeping track, but why then the editor?
The problem is aggravated by the fact that the CDPV of all articles are loaded on the main page of Habr, and if a site visitor with a not very powerful tablet and/or limited Internet access decides to simply scroll through the Habr feed, then he may have problems even if he does not open “problematic” ” articles.
For example, I use the old free Sberov tariff 50/500 (50 minutes / 500 MB). In principle, it is enough for me (for large calls I have a separate number). But if on the road you suddenly want to scroll through the Habr feed, you can easily spend the monthly limit in one trip. Well, at the same time, the battery can be used for multi-megapixel images.
The problem has been known for a long time (I myself periodically “complain” about articles with such pictures when the feed starts to slow down), but apparently no one is going to fix this bug.
Well, now to the actual problems that I encountered this time
It works – don't fix it (c)
As I already said, before writing a new article, I opened its prequel, The optimal distance to the working monitor vs the TV screen (multimedia monitor), with which I was going to work in parallel, and noticed that there were some question marks throughout the text (mostly in the headings). I quickly realized that the questions were in place standard Emoticonswhich I sometimes insert into my texts. Previously (at the time of writing the last article) the Habr website had nothing against emoji, but now it has suddenly become stricter
It would seem not a problem – I’ll remove the emoji. Which is what I actually did in a couple of minutes, and again “Published” the article – fortunately, the Habr website allows you to make changes (a really very convenient function that allows the author to easily correct errors in the article).
But in this case, after cleaning up the emoji and the Publication, all the formatting in the article disappeared (well, maybe not quite everything, but a lot – indents, headings, and most importantly – pictures).
Many authors have their own “author’s signature”. Including me. I don't like it when big pictures take over all the text. Especially auxiliary pictures, which are needed for better perception of the text, and should be visible on the same screen with it. And also vertical pictures, scrolling through which to the next text fragment the reader already forgets what was above or is forced to scroll up and down the article to perceive the entire text.
In this case, the size of some small pictures changed, and I was forced to restore the width attributes from memory. We more or less managed to restore everything. Or rather, almost everything – previously the old editor allowed you to put two pictures side by side in one line, but now this turned out to be impossible, and for example, the auxiliary illustration of a plastic spacer for adjusting a chair (its “drawing” and 3D model) turned out to be divided into two lines. Of course, it was possible to make a table with pictures inserted into adjacent cells (nowadays I sometimes do this), or combine the pictures in a graphics editor, re-upload them, and insert them as one picture, but I no longer had the strength for this. Well, besides that, restoring the rest of the formatting…
At the same time, in the process of editing the article, I had to “Publish” it many times, since during “View”, “Preview” and after publication, the article now looks different in the old editor (I don’t know if this happened before, but in any case I I didn’t notice), and in this case it was impossible to save to “Drafts”, since when publishing from “Draft” the publication date is updated, and I didn’t want to do this for an old article. In short, half a day of boring routine work. Naturally, there was no question of working on a new article at this time.
As a result, the courage disappeared, and the muse went somewhere ¯\_(ツ)_/¯
I had encountered something similar before when I was preparing the article Inexpensive Mini-PC on the Intel NUC-Like 11th Generation Core i7-1165G7 (Core i5-1135G7) platform with passive cooling, which also touched on the previously published article FullHD vs 4k and integer scaling: is 2 x 2 = 4 always?, in which then the formatting also disappeared. But then this happened already at the publication stage, when the creative work was actually completed, and this did not particularly interfere with the publication (although of course it required additional time for processing, and did not add positive emotions).
Well, now I still tried to continue writing a new article, but so far I’ve only got dry fragments, loosely connected to each other.
The muse has finally left…
And finally, about the new editor.
Yazhamat* knows better what you want
Before this, I honestly tried to use the new Habr editor several times, and after a short struggle with it, I gave up and returned to the old one. Fortunately, there is such an opportunity for now (ugh^3). But no one knows how long this “for now” will last.
To the question
I can answer in one word:
Starting from simple work with text, when one wrong move – and you are the father (c) and a fragment of the edited text disappears without the possibility of its recovery, and to more or less complex formatting, when essentially you have to guess what needs to be done so that the result is what you want, and not the editor.
In general, you have to behave like a capricious infantile child in a relationship with a demanding mother, who “knows better” what she thinks her child wants, thereby forcing the child to be capricious even more, in order to somehow push her to what he really wants.
But in this case, no “whims” helped, and the pictures did not want to become the way I, and not the editor, wanted.
As a result of communication within the above Challenge of fears with Habr representatives we managed to find out that this is impossible in principle, and the pictures will be the way the editor wants, and not the author, since “adaptive formatting” occurs, and jam the editor knows best what they should be.
Allegedly, this was done for better display on mobile devices with small screens, so that the picture, if possible, occupies the entire screen.
Well, if you really want to, you can add empty fields to the picture, then the image itself will be smaller than the width of the screen.
Well, the fact that an image with a width attribute in a window of smaller width or on a small screen of a mobile device will still take up the entire width (unlike a picture with empty fields, the image on which in a small window or screen will still remain small) remains within the scope of the response received.
In general, unlike the complete anarchy with KDPV, where you can sculpt anything – the Internet will tolerate everything, “And so it will do,” absolute totalitarianism flourishes here
A step to the left, a step to the right is considered an escape, and is punishable by execution by hanging
“Such a squiggle” (c)
If ten years ago, when I was looking for a new platform for publications after leaving IXBT, Habr Habrahabr had a similar editor, I would hardly have stopped here, and would now be published somewhere else.
Well, would it be good for me and my readers, as well as for Habrahabr, Geektimes and Habr – let it remain outside the brackets…
The finale of the story (or maybe a semi-final?)
Well, the article that started it all remained in drafts ¯\_(ツ)_/¯
After that, I tried to sit down with it several times, but the courage was gone, and apart from dry, unrelated fragments, nothing has come out yet ¯\_(ツ)_/¯
As I already said, I write better on emotions, preferably positive, or negative.
Well, I now have more than enough negative emotions, so I decided to write this article for now. Perhaps the article turned out to be somewhat sarcastic, but negative emotions cannot help it…
A lot depends on it now – if it is well received (or at least does not fail), then perhaps the muse will return, and I will still be able to finish what I started.
Well, maybe I’m just getting old – I’m already in my seventh decade, one of these days I’ll turn 62 years old (or already turned 62, if you’re reading after November 16), so I’m already a “vintage gas generator”, and maybe it’s really time for me to retire…
In any case, “I ask for your understanding and forgiveness”(c) ¯\_(ツ)_/¯
₽$ This article was published from the new Habr editor, without additional formatting – just like bequeathed made by the editor. This time I did not become capricious, and directed jam Habr editor in the direction that is correct in my opinion, and not in the opinion of the Habr editor.
Without his “help” I would of course have designed many things differently, but “what has grown has grown”
₽₽$ Well, if I publish the postponed article, it will be in the old Habr editor. If during this time the old editor is finally closed, then I am unlikely to publish it, and in this case it is possible that this is my last article.