[Home] 
Technical Glossary / Page Set Specification


FrontPage
TechnicalGlossary/

RecentChanges
TestPage
Forum

Search
Members
Projects
Folders
Index

Preferences

Edit
  This page is to development a syntax for the specification of pagesets. It should be possible to avoid the use of whitespace and other special characters (&, #, ...) to make the syntax able for the HTML-command-line.

Needed:

  • List syntax:
    • Syntax 1: Page1;Page2;...;PageN (separator)
    • Syntax 2: { Page1 Page2 ... PageN } (brackets)
    • Syntax 3: Page1+Page2+...+PageN (standard HTML conjunction character, '+', interchangeable with ' ' in a URL) - used in MeatBall:PeriPeri's syntax
    • ...
  • Refernce to virtual data
    • Syntax 1: @vida.Page1.@var.Variable
    • Syntax 2: @vida.Page1.@caption."Chapter 2".@pages
    • ...
  • Search result syntax:
    • Syntax 1: @search"text"
    • Syntax 2: @contains=text
    • Syntax 2: @searchbody.text
    • ...
  • Page name selection:
    • Syntax 1 (regex): Pagename/* (how to specify the inclusion or exclusion of Pagename)
    • Syntax 2: Pagename/*Word*/*
    • ...
The sets could be assigned to variables and combined with usual set operations (logical or set operations? which symbols):

  • @1=(Page1;Page2)/@2=@seach"Category"/@{1 AND }?(@{2 OR }?@3) (command separator needed)
  • Operators 1: & | (not good, collision with HTML)
  • Operators 2: + - *
  • Operators 3: AND OR
  • Others: SPLIT, JOIN, INTERSECT, UNION, ...
Maybe a search (or searchbody) and a searchtitle function is neeeded? How to specify the concept of "word" within a pagename?


Maybe the set terminology is not accessable to typical users. Maybe a list terminology (nearer to Perl list=array) is a better compromise.


What is "the HTML command line"? Is this to do with typing in raw HTML, but adding some extra parsing? If so, you might find & is a very good character to use to indicate special operations, since it is already used roughly that way. For example: Page1∧Page2 (written &and. The "∧" character can IIRC be translated by a browser to a standard symbol, or even a picture, provided you give it ample warning. Mine does it automatically. -- ChrisPurcell