Author Topic: EDM/2 Wiki Issue  (Read 15351 times)

Tom

  • Full Member
  • ***
  • Posts: 224
  • Karma: +6/-0
    • View Profile
Re: EDM/2 Wiki Issue
« Reply #15 on: April 06, 2025, 06:32:18 pm »
Hello

We are back editing the EDM/2 wiki. I'll keep going on the never ending task of migrating the OS/2 API to the EDM/2 (AI helps me a little bit now with the MediaWiki format). But I had changed my ID, I don't know why I can not log on with my old user ID. If someone used to have a logon access to the EDM/2 wiki, give it a try, modify the "Sandbox" or your own User Profile page to test it out.

Regards


My Netlabs credentials no longer work when I try to login at www.edm2.com :(

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5260
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: EDM/2 Wiki Issue
« Reply #16 on: April 07, 2025, 02:35:47 am »
Hello

Adrian just told me that he hasn't finished to connect the LDAP. We will have to wait more time.
Thanks for testing it.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5260
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: EDM/2 Wiki Issue
« Reply #17 on: April 07, 2025, 11:58:25 pm »
Just an important milestone for me.

I finished the GPI Functions on the Wiki.
- https://www.edm2.com/index.php/GPI_Functions

I used Gemini AI to help me have the wiki layout for each function and it made my job faster.
I let the AI know how I liked the "template" and ask it to not create anything new, just to help me with the format. It reduced my work to more Ctrl+C and Ctrl+P, but less work fixing the layout.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1123
  • Karma: +30/-0
    • View Profile
    • Blonde Guy
Re: EDM/2 Wiki Issue
« Reply #18 on: April 08, 2025, 03:09:49 am »
It looks like you used the INF file from the OS/2 toolkit (GPI Guide and Reference) as the source material. But some links are missed, and they are just plain text.

For example, in GpiSetCharBox, there is an item Graphic Elements and Orders. In that page, there is a link to "Set Character Cell", but in the EDM/2 Wiki web page, this link is changed to plain text.

There are many Gpi functions -- it looks like you did a lot of work.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5260
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: EDM/2 Wiki Issue
« Reply #19 on: April 08, 2025, 02:31:06 pm »
Hi Neil
For example, in GpiSetCharBox, there is an item Graphic Elements and Orders. In that page, there is a link to "Set Character Cell", but in the EDM/2 Wiki web page, this link is changed to plain text.
Yes, you are right. It is not perfect and it is good that you let me know.

My issue here is that I'm not using the INF file directly as source (since it is not a recognize format for the AI), I'm using a printed PDF and I copy the text of each function one by one. Otherwise (as far as I tested), if I feed the AI with the source and let it generate the content on the structure that I want, it will start to fill the blanks and invent things (that I don't like). This is why I copy all the text and just use tell it to use the layout and not invent anything. (hopefully)

About this link, the inf file (I got from "yum install os2tk45-books") can not find the reference file.  What will be a good way to find the reference and see if I can fix some of the EDM/2 wiki?

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1123
  • Karma: +30/-0
    • View Profile
    • Blonde Guy
Re: EDM/2 Wiki Issue
« Reply #20 on: April 08, 2025, 03:42:36 pm »
That is a lot of work. I hope AI is helping.

I thought I could export an INF file to IPF using New View Tools->Save as IPF, but that does not work as well as I'd hope. It seems to start saving the document, but then finishes early skipping most of the content of the document.

Gpi functions are split into four INF files, GPI1.INF to GPI2.INF. You need to view GPI2.INF for the functions. If you then Save as IPF, you get GPI2.IPF that looks correct. This is an SGML file that can be parsed. Many tools on Hobbes have been written to manipulate IPF.

Maybe AI can convert the IPF to Wiki format directly?
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5260
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: EDM/2 Wiki Issue
« Reply #21 on: April 08, 2025, 03:54:55 pm »
That is a lot of work. I hope AI is helping.
It really helped a lot from doing the media wiki layout manually to have it in one second. The thing that I have to be careful about is the that it does not "invent" anything.
But I had to check the quality of the gpi to be sure that is helping. For the moment I didn't found any serious issue with it.

I thought I could export an INF file to IPF using New View Tools->Save as IPF, but that does not work as well as I'd hope. It seems to start saving the document, but then finishes early skipping most of the content of the document.

I think this is a good idea. I will try using IPF instead of the PDF and see if the mediawiki convertion works better with AI.

Regards

Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5260
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: EDM/2 Wiki Issue
« Reply #22 on: April 08, 2025, 04:02:00 pm »
Hello

Look now what I did with notebooklm.

I was not sure if the "GPI Functions" page was complete, or if the GPI documentation was complete or not. So I told the AI to compare:
- https://www.edm2.com/index.php/GPI_Functions
With the "OS/2 DLL Entry Points Cross Reference"
- https://www.edm2.com/index.php/OS/2_DLL_Entry_Points_Cross_Reference
And  "OS2386.LIB Information generated with EMXIMP"
- https://www.edm2.com/index.php/OS2386.LIB_Information_generated_with_EMXIMP

I told him to let me know which gpi functions I'm missing on the first list. It gave me:

Code: [Select]
    GpiOval
    GpiAbortPath
    GpiAccessMetaFile
    GpiBeginInkPath
    GpiEndInkPath
    GpiOpenMetaFile
    GpiCloseMetafile
    GpiConvPSH
    GpiCreateEllipticRegion
    GpiCreatePolygonRegion
    GpiCreateRoundRectRegion
    GpiDrawChain
    GpiDrawFrom
    GpiDrawDynamics
    GpiConvPSH
    GpiEnableYInversion
    GpiInstallIFIFont
    GpiMTAssociate
    GpiMTDisassociate
    GpiQueryDCData
    GpiSetDCOwner
    GpiQueryFontMappingFlags
    GpiSetFontMappingFlags
    GpiQueryMitreLimit
    GpiSetMitreLimit
    GpiQueryNumberSetIds
    GpiQueryPath
    GpiQueryRasterizerCaps
    GpiQueryTabbedTextExtent
    GpiTabbedCharStringAt
    GpiRealizeColorTable
    GpiResizePalette
    GpiResumePlay
    GpiSuspendPlay
    GpiSaveMetaFile2
    GpiSetBitmapOwner
    GpiSetRegionOwner
    GpiStartRequest
    GpiStrokeInkPath
    GpiUnrealizeColorTable
    GpiVectorSymbol

I doble checked that those functions exists on the  "OS2386.LIB Information generated with EMXIMP"
So, now I had have to find out if it is worthy to try to document or research that functions :)
For the moment I just added those to the list of GPI as "Not Documented - To Verify"

Now, let's search if "GpiOval" was ever used on the source code I have on Github.com/OS2World
- https://github.com/search?q=org%3AOS2World%20GpiOval&type=code
I think I have something to start documenting it but I need more criteria from a developer.

Regards
« Last Edit: April 08, 2025, 04:06:04 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5260
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: EDM/2 Wiki Issue
« Reply #23 on: April 13, 2025, 04:33:38 pm »
Hello

It was reported today by Adrian that the EDM/2 wiki and the Netlabs Wiki are connected back to the Netlabs LDAP.

I tested it and I can log in to both with the same password:

- https://www.edm2.com/index.php/Main_Page
- https://wiki.netlabs.org/index.php/Main_Page

Please test with the netlabs password that you remember.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5378
  • Karma: +127/-1
    • View Profile
Re: EDM/2 Wiki Issue
« Reply #24 on: April 13, 2025, 06:28:47 pm »
Successfully logged into both sites. Thanks to you and Adrian for the work put in.