What do you mean by complete freedom? That you can write a program that can do anything you want, as long as it has text input and output? Well, you can do that in nearly all programming languages. At least the ones that are colloquially (but wrongly) called "turing complete". A good computer science theorist (which I am not) can probably create a formal proof that any algorithm that converts text into text and is written in C and that terminates can also be implemented in ruby, rexx, perl, python, or awk.
Surely, we have freedom now and also a wide range of possibilities concerning choice of programming language. Why not in assembler, by the way for training skills ? Or Java for the other way.
Both are good choices.
Which has exactly nothing to do with the choice of programming language. You can write command-line programs in a huge variety of languages. For this particular problem, C is one of the least suitable languages (although Fortran-IV or assembly would be admittedly even less suitable).
Sure. Because C is really down to minimum.
However it is a cool, good, one.
You can do it in Pascal, it is a good training too.
Absolutely. That is true of any program that is a pure command-line program. Even for perl and python programs, which you seem to so dislike.
I want the program to be fairly compilable without worries, reliable about 200 pct.
I make choice of C because it works on PC Win, Mac, Linux, ... and BSD with almost no modification(s).
It can be compiled 10 years after
Cool.
Sorry, but the question here (how to implement a text -> text converter that reads a certain documentation format and outputs HTML format) has absolutely nothing to do with free. You can do it with free software, or with licensed paid software. You can create free software, or you can assign the rights to the software to someone else, or you can license and sell it yourself. You can do all of this on MS Windows (yes, there are free C compilers for Windows), and on Unixes. Sorry, but your raving about Windows and freedom has NOTHING to do with the question here.
OK, I was thinking about Microsoft products that change time to time. Users have to use next generation formats, or to buy a new release so that it works with Win 10. You probably understand (although "Learn how to get older programs to run on this version Windows").
I want to see you code this in 5-10 minutes. Really. It would take a seasoned professional hours to come up with a quick solution that works correctly for a few files, and weeks or months to come up with a general solution that is high enough quality to release it to a wide audience. I am sorry, but you have completely lost touch with reality.
It depends the need: professional (for many persons) or easy own audience programming.
You can make a big project and spend years on it, or just less than minutes. Up to what shall do the conversion. Basically, it can be complex since (x)html is really a big complex markup language (today).
Many other languages are also available on BSD. For example awk. This problem could be coded in awk (and it wouldn't even be a particularly bad idea, way better than C). And awk is most certainly in the default installation. To be honest, I don't know whether python and perl are in the default installation (I install them anyway, since they are needed for any computer that can do realistic work).
awk is cool - yeah.
C too
That's complete poppycock. Installing programming languages such as the ones I keep mentioning is
- not large (the packages are fast to download and install, and only increase the OS footprint by a very small amount),
- it is not CPU consuming (you keep spewing that nonsense, and when called on the carpet to produce some evidence you go strangely silent),
- not numerous (the base perl or python package is probably just one or a handful packages),
- and has nothing to do with graphical. All these programming languages exist in basic, non-graphical versions.
I prefer C over python, because I prefer C / the syntax is nice.
If you want to learn C, just do C
Absolutely. If you can find a ready-to-use library that can parse the documentation format you showed above, then the problem you posed here is nearly solved. Alas, I don't know of such a library. You will have to write it yourself. Which is what I'm trying to get you to start, or at least explain how you would start.
There are many ready available libraries. I used them already, and it worked.
When I was student, I made quite a lot of programming in Pascal : the best was the programming language Pascal. I got fascinated by Pascal. I did not have much chance to learn C so much, because we obliged learn all the Microsoft products (Visual Basic 4, 5, 6, .net,... ) and so on,... brr.
I think that learning (Free) Pascal, Delphi, ... would have been much better.
Well-written code in nearly any programming language is human readable. Even in perl (although admittedly, the standard perl style is a little hard to follow). I know there are exceptions, some that were used for serious work (such as APL), and some that were jokes (such as Intercal).
They are all human readable markup languages, they are fine.
Perl, Ruby,... many people use it for some given reasons.
Perl is readily highly powerful for such things, really.
Anyone should be using Perl for such problem (txt <-> html).
None of this has anything to do with GNU, or freedom. You posed a programming question. Deal with it and start programming. I've given quite a few pointers in this thread, about how to select programming languages, how to think about structuring your program, and so on. Please stop your lunatic raving about Windows, GNU, freedom, and simplicity, and start using a computer.
C is my choice. Because (1) I like the syntax (2) because it works (3) Anywhere + anytime available !!!
Compiling and Portability on Linux, BSD and Windows.
The C programming language: it is stable and reliable.
here get this and compile without asking admin pass: https://bellard.org/tcc/
Portable.