Editing Text Without Crashing.
|
I was thinking that we could use Pimp and Ho. It describes the same type of relationship, with the added bonus of annoying those who are already annoyed about the connotations of the word slave. |
|
The problem with Sun and planet is that it can be confusing to the Catholic church. Is ‘Ho’ another word for prostitute? |
|
True and Yes. |
|
Is the plural of Ho (which is a word that I have never heard of except in the context of laughter so it is a bit obscure) ‘Ho Ho’? |
|
Slang (probably leftpondian) version of “whore”. |
|
Surely then it should be spelled ‘who.’ but pronounced ‘ho’? |
|
In Shakespeare’s day whore and hour sounded the same. So many puns no longer work. It is an old word. The w crept in by the usual route of false learning. |
|
Surely if Shakespeare had meant his plays to be funny, he would have included jokes? (Didn’t do English Lit. at my grammar school so I have never read any Shakespeare. We concentrated on more important things, such as Latin which was still (until 1960 but we were not told that the requirement had ceased until after we had started learning it in 1967!) required to get into University, both of them. Only the top set were taught Latin, of course, as only the top few per cent were needed to go to University.) |
|
He did, and he did. |
|
Gives a hole new slant to being paid the hourly rate. :) |
|
I have done an internet search using the search phrase “logical lines and physical lines” and several of the results say that physical lines are what you see on the screen and logical lines are statements that may stretch over several physical lines. None of these follow StrongED on this that has it the other way round. |
|
Does it? I query that statement as I have just repeated a check done the other day with the menu sequence (key shortcut F5) and irrespective of whether the displayed option says “Goto logical line” or “Goto physical line” when I supply a line number like 37 it always goes to physical line 37 The definition in the StrongHelp file associated with SE has a definition of Logical lines that differs from the one discussed here(and probably as described anywhere other than that SH file), but the Physical definition most definitely matches what we’ve been talking about. I count down physical lines on the screen and the line number matches the info in the bottom of the SE window. |
|
Wow! I have just pressed F5 when the input focus was this reply thinking the input was to the StrongED window. So I have to start all over again. :-(( I have a BASIC program of over 500 statements including some blank lines. The StrongED window has a wrap width of 80 with many statements wrapped over more than one line. I enter 37 in the Goto field in the Goto window (F5) with the Goto physical line option and it goes to statement line 37, but with the logical line option it goes to statement line 29. The difference of 8 being due to there being 8 statement lines preceding that each occupy 2 physical lines on the screen. These results seem the wrong way round to me. Statement line 29 is on physical line 37 and statement line 37 is on physical line 45. As regards the line number in the bottom of the StrongED window, this matches the statement number in my case, not the physical line number. |
|
“Wrapped lines” is the SE definition.
v4.70a14 |
|
I am getting the error “Couldn’t connect to server” when trying to get version 4.70 of StrongED from www.stronged.iconbar.com. Logical and Physical line numbers in Zap (v1.48) accord with my expectations. Note that in this case the physical line number will always be greater than or equal to the logical line number. It’s the other way round in my version of StrongED. |
|
The Iconbar site was down for a while today – seems to be back now. |
|
There was a network outage that took out some systems in the central NHS for a short while, failed over to alternates so pretty brief. |
|
I have now downloaded alpha version 4.70a13 (11/10/18) and it behaves the same way as my previous version as regards line numbering. I ‘hid’ my older version 4.69f11 including StrED_cfg, copied in this alpha version and re-booted the computer to make sure no previous settings could affect my test. I didn’t see on the website your version 4.70a14. So, are you a tester? |
|
As much as anyone else is… From the StrongED main page, choose the link in the paragraph about Test releases to go here Edit: Note I gave the first landing page as that’s the route Fred prefers |
|
When I implemented line numbers in StrongED I also researched “logical lines and physical lines”. I’ve just done another quick scan and the result is much the same as back then: a physical line is terminated by an end-of-line sequence (lf, cr or combination thereof). This means that a physical line is determined by what’s in the file, not what’s on the screen. StrongED refers to such lines internally as The term ‘logical lines’ is where the search results and StrongED differ. The results speak of a logical line when it’s a program statement that should be seen as a single line even when it’s split across two or more physical lines. An example of a logical line is a C function definition that has many parameters. To aid readability some of those parameters are placed on the following line. This keeps the physical lines short so they don’t have to be softwrapped as that makes things less easy to read. StrongED uses the term ‘logical lines’ for lines as shown on the screen where long physical lines may have been split into multiple display lines by the wrapping logic. Internally these are called At the time of implementation I did ask on the StrongED mailing list what users preferred: Zap’s style or StrongED’s current style. The latter came out as a slight favourite so that’s what I went with. An alternative mentioned was to use the internal terms Hopefully that sheds some light on StrongED’s line numbers. BTW there is no difference in line numbering (terms) between 4.69 and 4.70! |
|
That isn’t what I have read in 5 different websites found by using search phrase “logical lines and physical lines”. Not one of them uses this terminology the StrongED way. The websites were Wikipedia, codeSansar, ibiblio, ProjectCodeMeter and StackOverflow – these were the ones listed first using DuckDuckGo search engine. Most spoke only of Python, but Wikipedia also gave examples in the C programming language. In every case the physical number of the line was greater than or equal, greater when after wrapped lines, to the logical line number. So StrongED seems to be alone in this. The website that Rick Murray cites doesn’t support his interpretation. The section “Logical lines and physical lines” includes the following. That the web references are mainly to Python should matter to us as this is the programming language of the times and is being promoted on the Raspberry-Pi for Linux and for RISC OS. Isn’t this language the one schools are promoting? |
|
Which part doesn’t support it? To me, a physical line is a line as it appears on the screen. On the other hand, a logical line is a line that ends at a logical end point. While the description in the linked site specifies that a linefeed is the end of a logical line, this is a very simplistic version. I have no problem if a sequence of 192 characters (text or HTML) is wrapped into three physical lines. It is simple and acceptable. However, I wish to point out in the sphere of programming, one can consider the following to be a single logical line: if ( ( ( this == that ) || ( something == somethingelse ) ) && ( this != somethingelse ) ) printf("This \ is \ a \ single \ line \ to \ the \ compiler.\n"); I don’t expect StrongEd (or anything on RISC OS) to consider such things as single logical lines as the file parsing can get complicated in a hurry.
Yeah, that’s spectacularly badly worded – saying that a logical line ends with linebreaks, and saying the same thing about physical lines is…gibberish. Better to say that physical lines are made in appearance by the physical properties of the screen (how many characters across). Linebreaks don’t apply here, how the editor places the cursor to the start of the next line is an implementation detail that shouldn’t be a part of this description. Yeah, adding “-python” to the search string helps…a bit. I think the many references to Python are because whitespace matters in Python.
Uh… isn’t this back to front? What’s in the file is supposed to be the logical line, with the editor formatting it into physical lines according to whatever method (wrapping etc). |
|
@Rick |
|
It is from Fred, the post above yours! ;-) |
|
In the early days of computing some servers used to strip spaces from the end of lines in text files [guess whose – and let us not get into what a text file or a line is]. So programming language designers soon realised that using white space or layout for semantic purposes was not to be recommended. Send the text of your program over the internet, and it ends up meaning something different. Despite this, in the early days of functional programming, some languages, and in particular Haskell, used layout (the offside rule ) to indicate block structure. This was ameliorated by allowing a semicolon as an end-of-statement marker. Python followed suit. There is only one place in Lua where the notion of a line of text is used: in the The physical v logical stuff is mostly just words. I hate text editors that try to keep lines of one kind as lines of the other, so that you have to scroll the window horizontally to see the rest of the line, and you can never see the whole of it. Hard and soft linebreaks seem a better solution to me, especially if there is colour to explain the difference. |