Lazarus
Announcements => Lazarus => Topic started by: Vincent Snijders on March 23, 2012, 11:37:10 am
-
The Free Pascal and Lazarus wiki has been moved to a new server with the same host name, but different IP. Also the wiki software has been upgraded to the latest Mediawiki version.
Because porting the custom Free Pascal skin to the new version was too time consuming the default monoskin is used now. Therefore you will notice changes in its appearance.
-
All over the wiki, code is enclosed in <delphi></delphi> or <pascal></pascal> tags. These tags are not recognized by new wiki.
For example, try to read the code here:
http://wiki.lazarus.freepascal.org/Executing_External_Programs#A_Simple_Example,
or http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial#Units_needed_for_a_multi-threaded_application
and many more.
-
The need to be replaced by <source></source> or <syntaxhighlight></syntaxhighlight> tags. I made Delphi the default language.
For more details about the highlighter, see the docs (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi).
-
The need to be replaced by <source></source> or <syntaxhighlight></syntaxhighlight> tags. I made Delphi the default language.
For more details about the highlighter, see the docs (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi).
Thank you, Vincent. I have just made these corrections on two pages which I used as example in my previous post. Some more effort should be made by all of us to replace these tags in whole our wiki.
-
Thank you, Zoran. I see others have made similar changes too, so I hope the wiki will be good looking soon.
-
I like the new wiki, the menu is in the left side like in this forum =) Nice consistent look.
-
That's good news! In the course of this reorganization I would recommend to introduce some styling to wiki articles. I have in mind:
* classification (to what area belongs a certain topic; the simple "category" structure is too flat IMHO)
* structure (often I'm looking for the unit where a function is defined)
* linking between topics
* implementation sample in visual and non-visual flavor
* usage, best practice.
At the moment most articles are third party contributions. Perhaps I'm wrong and the wiki isn't intended as basic help. I would like to have such a control and pattern library / FAQ / reference / guideline.
BTW: May I vote for a non-animated icon? ;-)
-
That's good news! In the course of this reorganization I would recommend to introduce some styling to wiki articles. I have in mind:
* classification (to what area belongs a certain topic; the simple "category" structure is too flat IMHO)
* structure (often I'm looking for the unit where a function is defined)
* linking between topics
* implementation sample in visual and non-visual flavor
* usage, best practice.
At the moment most articles are third party contributions. Perhaps I'm wrong and the wiki isn't intended as basic help. I would like to have such a control and pattern library / FAQ / reference / guideline.
It is a wiki intended as basic help, written largely by the community. Feel free to improve it.
BTW: May I vote for a non-animated icon? ;-)
Use the lazarus wiki (http://wiki.lazarus.freepascal.org).
-
The need to be replaced by <source></source> or <syntaxhighlight></syntaxhighlight> tags. I made Delphi the default language.
For more details about the highlighter, see the docs (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi).
This should have been done automatically, as part of the move to the new platform.
It's absurd to do this by hand.
For example I created two tuts (http://wiki.lazarus.freepascal.org/Peg_Solitaire_tutorial) to get going with Lazarus and now the text is unreadable, the articles unusable and the time and effort I spent writing them largly waisted.
:'(
-
The need to be replaced by <source></source> or <syntaxhighlight></syntaxhighlight> tags. I made Delphi the default language.
For more details about the highlighter, see the docs (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi).
This should have been done automatically, as part of the move to the new platform.
It's absurd to do this by hand.
For example I created two tuts (http://wiki.lazarus.freepascal.org/Peg_Solitaire_tutorial) to get going with Lazarus and now the text is unreadable, the articles unusable and the time and effort I spent writing them largly waisted.
:'(
Yes, it should have been changed as part of the change-over, but I think you are over reacting. It takes less than a minute to change a page.
I actually changed the one you link to in under 30 seconds: went in edit mode; copied the text to my editor and did one search and replace ('delphi>' to 'syntaxhighlight>'). Then copy the new text to the wiki editor and save... done
Gr.
Dirk.
-
I actually changed the one you link to in under 30 seconds: went in edit mode; copied the text to my editor and did one search and replace ('delphi>' to 'syntaxhighlight>'). Then copy the new text to the wiki editor and save... done
Good point; I missed that one.
Nevertheless it would still be highly appreaciated if it were done automatically for the many other pages that are still out there.
There really is no excuse for leaving the pages as distorted as they are now.
-
Wouldn't using something like
sed -i 's/<delphi>/<SyntaxHighlight>/'
sed -i 's/<Delphi>/<SyntaxHighlight>/'
sed -i 's/<pascal>/<SyntaxHighlight>/'
sed -i 's/<Pascal>/<SyntaxHighlight>/'
sed -i 's/</delphi>/</SyntaxHighlight>/'
sed -i 's/</Delphi>/</SyntaxHighlight>/'
sed -i 's/</pascal>/</SyntaxHighlight>/'
sed -i 's/</Pascal>/</SyntaxHighlight>/'
be possible?
Or something like
http://www.mediawiki.org/wiki/Extension:Replace_Text (http://www.mediawiki.org/wiki/Extension:Replace_Text)
Replace Text is an extension to MediaWiki that provides a special page to allow administrators to do a global string find-and-replace on both the text and titles of the wiki's content pages
By default, only members of the 'sysop' user group have access to the Replace Text functionality.
... can't tell if this works on the wiki source or the resulting text only.
Personnally, I've spent a lot of effort in improving wiki pages and even writing some of my own.
I do appreciate the effort involved in maintaining and moving the wiki, but I'm not exactly raring to go to rewrite all those nicely formatted code samples.
Then again, if the pages I've edited are useful, I'm sure people will start rewriting the code tags... and I might join them....
By the way, I prefer the new look as well because the search/navigation components on the left make it easier to switch between forum and wiki...
Edit: code, comment on layout
-
sed doesn't work on database fields, so it would be done on a database dump. I am a bit worried it might replace too much.
-
I installed the ReplaceText extension and did the replacement on a couple of pages. Please review the result. If it is ok, I wil do the replacement on all pages.
-
I installed the ReplaceText extension and did the replacement on a couple of pages. Please review the result. If it is ok, I wil do the replacement on all pages.
Which ones?
-
See: http://wiki.lazarus.freepascal.org/Special:RecentChanges
The comment starts with "Text replace - ".
-
Thanks, Vincent!
Edit:
Looked at hash, for in loop, fcl-web, fcl image: look ok (note: fcl-image code snippets are broken but they were broken in the previous revision as well)
Edit: wrote it while you posted. Disregard the rest: saw you fixed xml stuff while I was looking for Pascal code...
Saw some changes made on 10:12... do you mean those?
Web Service Toolkit: not ok: still has <delphi> </delphi> tags
or
<delphi>
</delphi>
in the html source
FPMake: not ok, also <delphi> and <pascal> tags also still present
The code does appear between <pre> tags, so it is properly displayed - though not with syntax highlighting...
-
See: http://wiki.lazarus.freepascal.org/Special:RecentChanges
The comment starts with "Text replace - ".
I saw those, but the Delphi tags were still there, didn't look ok.
So I thought you changed other pages.
As BC said, doesn't look good yet with the Delphi tags.
-
@eny, I think you misunderstood me.
If I understand correctly, Vincent replaced some pages with <xml></xml> and some other pages with <delphi></delphi> tags.
I looked at a couple of pages with Delphi replacements. These were all fine.
To prevent confusion: one of the pages I looked at has broken Pascal code snippets now but the Pascal code was already broken in the previous version (before the wiki move) as well - I checked the history.
I haven't looked at the xml replacements as I wasn't as interested in that and didn't have time.
.
-
Looked at xml tutorial de, es and web service toolkit for xml replacements. Looks fine.
As far as I'm concerned it looks good!
-
@eny, I think you misunderstood me.
If I understand correctly, Vincent replaced some pages with <xml></xml> and some other pages with <delphi></delphi> tags.
Ah, then maybe I looked by chance at pages that were already wrong.
Anyways clicked on some more pages in the 'Text replace list' and they look pretty good.
I'm only not sure about the Chinese changes :D although I saw that the <sql> tags looked wrong:
http://wiki.lazarus.freepascal.org/SQLdb_Tutorial1/zh_CN#.E6.9C.AA.E5.AE.89.E8.A3.85employee.fdb.E6.95.B0.E6.8D.AE.E5.BA.93.3F.28No_employee.fdb_installed.3F.29
Do they need replacement too?
My 2 cents.
-
@eny, I think you misunderstood me.
If I understand correctly, Vincent replaced some pages with <xml></xml> and some other pages with <delphi></delphi> tags.
Ah, then maybe I looked by chance at pages that were already wrong.
Anyways clicked on some more pages in the 'Text replace list' and they look pretty good.
I'm only not sure about the Chinese changes :D although I saw that the <sql> tags looked wrong:
http://wiki.lazarus.freepascal.org/SQLdb_Tutorial1/zh_CN#.E6.9C.AA.E5.AE.89.E8.A3.85employee.fdb.E6.95.B0.E6.8D.AE.E5.BA.93.3F.28No_employee.fdb_installed.3F.29
Do they need replacement too?
My 2 cents.
I can't read chinese, but it seems obvious to me that <sql> tag should be replaced by <syntaxhighlight lang="sql"> tag, so I did it now.
-
Why is the old logo used?
-
can anyone add this hard to find list of tutorials -> http://wiki.lazarus.freepascal.org/Category:Tutorials
to the "Lazarus and Pascal Tutorials" section -> http://wiki.lazarus.freepascal.org/Lazarus_Documentation#Lazarus_and_Pascal_Tutorials
just for the purpose of easy access
-
jOx, anybody can create an account and make this edit. Can you do it yourself?
-
jOx, anybody can create an account and make this edit. Can you do it yourself?
oh ok ill do it
-
Hi
Is the wiki offline or what????
I can't access it. does anyone else has this problem
thanks
-
Is the wiki offline or what????
I can't access it. does anyone else has this problem
Same here %)
-
Yep, wiki's been having problems; as per Vincent in the Lazarus mailing list, it's been noticed and is being worked on...