OpenLLM-France/wikimedia huggingface dataset:
# XML - Managing Data Exchange/RSS/RSS on Firefox
## Add Live Bookmark by Icon

Firefox's Live Bookmarks is one application of RSS. Here we are going to tell you how to use Firefox browser as your RSS reader. There are basically two different ways for user to feed RSS into Firefox. The first and easiest way is to add the feed directly.
* When browsing a website with RSS feed, there will be a small icon showed on window.
* For Firefox version 1.5.0.1, a small icon will show on the right side of the URL location.
* The icon will change depending on the theme of your Firefox browser. The icon showed here is the default icon of Firefox.
* For different version of Firefox, the location of the icon might be different. In prior versions, the icon might be at lower-right corner of the window.
* Users click on the icon.
* A dialog window will show up.
* Choose the location to put the Live Bookmark. Then click OK.
* Live Bookmark will show on the bookmark bar.
* When clicking on the icon, it will update to the latest news automatically.
* When you click on one topic, it will open one new window connecting to the website of the content.

## Another Way to Feed RSS

* Click on the Bookmark tag and choose Manage Bookmarks.
* In Bookmarks Manager, choose File -> New Live Bookmark.
* Copy the RSS site (an URL of a xml file) of the website you want.
* Paste the RSS link into Feed Location attribute.
* The Live Bookmark will show up at your Bookmarks.
# XML - Managing Data Exchange/SMIL/Answers

* Create a simple SMIL file which displays the words, 'Hello World'. Confirm that the file works in a SMIL-conformant player.
* Author a SMIL file which displays 'Hello World' for 3 seconds, then displays 'Goodbye World' for 1 second. Confirm that the file works in a SMIL-conformant player.

## Answer

1. Submitted by Anne Rayborn Howard File Exercise1.smil
| 1 2 3 4 5 6 7 8 9 10 11 | <smil> <head> <layout> <root-layout width="200" height="75" background-color="white" /> <region id="text" left="0" top="0" width="200" height="75" /> </layout> </head> <body> <text src="Exercise1.rt" alt="Hello World" region="text" dur="1s" begin="0s" /> </body> </smil> |
File Exercise1.rt
| 1 | Hello World! |
2. Submitted by Anne Rayborn Howard File Exercise2.smil
| 1 2 3 4 5 6 7 8 9 10 11 12 | <smil> <head> <layout> <root-layout width="200" height="75" background-color="white" /> <region id="text" left="0" top="0" width="200" height="75" /> </layout> </head> <body> <text src="Exercise1.rt" alt="Hello World" region="text" dur="3s" begin="0s" /> <text src="Exercise2.rt" alt="Goodbye World" region="text" dur="1s" begin="0s" /> </body> </smil> |
File Exercise2.rt
| 1 | Goodbye World! |
3. Submitted by (your name here) If you have MS Powerpoint, you can use the Smil Generator for Powerpoint presentations to convert your powerpoint.
* 1
* 2
* 3
4. Submitted by (Your Name Here!)
* 1
* 2
* 3
# Yet Another Haskell Tutorial/Index
## Index

* comments
* filter
* foldl, foldr
* let (compared to where)
* map
* where
# Yet Another Haskell Tutorial/Introduction

This tutorial contains a whole host of example code, all of which should have been included in its distribution. If not, please refer to the links on the Haskell web site haskell.org to get it. This book is formatted to make example code stand out from the rest of the text.
Code will look like this.
Occasionally, we will refer to interaction between you and the operating system and/or the interactive shell (more on this in Section Getting started).
Example:
Strewn throughout the tutorial, we will often make additional notes to something written. These are often for making comparisons to other programming languages or adding helpful information.
Note
Notes will appear like this.
If we're covering a difficult or confusing topic and there is something you should watch out for, we will place a warning.
Finally, we will sometimes make reference to built-in functions (so-called Prelude-functions). This will look something like this:
Within the body text, Haskell keywords will appear like this: where, identifiers as map, types as String and classes as Eq.
# Yet Another Haskell Tutorial/Errata

This page contains a list of errata which have been discovered so far in the PDF version of YAHT (some of these may have already been corrected in the online HTML version - (imported)).
* Exercises
* Convert the following functions into point-free style, if possible.
* func5 f l = foldr (\x y -> f (y,x)) 0 l
"we create a value, call it x, which has value Red. We then apply this to colorToRGB. We check to see if we can “match” x against Red. This match fails because according to the definition of Eq Color, Red is not equal to Yellow."
Clearly, the premise is wrong, the initial value x should be 'Yellow' in order for the rest of the paragraph to make sense.
However, as pointed out by Michael Mossey on the Haskell-Beginners mailing list, that solution is actually incorrect.
Here is the correct solution:
As a sidenote, Daniel Fischer has provided a succinct way of verifying correctness of the solutions, using types, as follows:
A simple way to check for sanity of the results is:
Example:
So you see that your result has the correct type, while Hal's hasn't.
In the above-mentioned description, the first pair of two lines show that the type of
(i.e., the solution to verify) is
The second pair of two lines show that the type of
(i.e., essentially the expression given in the exercise, which was f l = foldr (\x y -> f (y,x)) 0 l) is also
(Note that this is the same type as above, only written with renamed variables.)
The third pair of two lines show that the type of
(i.e., the solution given by Hal in the PDF version of the tutorial) is
which is a different type. Hence, the solution given by Hal is incorrect.
Note
(Thanks to both Michael Mossey and Daniel Fischer for their discussion on the Haskell-Beginners mailing list regarding this issue.)
-- Benjamin L. Russell
2. Exercise 4.11:
* Exercises
* 4.11. Test whether the CPS-style fold mimicks either of foldr and foldl. If not, where is the difference?
It does not specify the "CPS-style fold" function, so the reader should assume that the exercise is about the previously defined cfold:
But the solution given in YAHT is actually not about this function. In fact, this function behaves exactly as foldr. The solution is about very similar function: the only difference is in the order of arguments for the second case of cfold', namely
# Yet Another Haskell Tutorial/Io/Solutions
## Actions

Using if, we get something like:
Note that we don't need to repeat the dos inside the ifs, since these are only one action commands.
We could also be a bit smarter and use the elem command which is built in to the Prelude:
Of course, we needn't put all the putStrLns inside the if statements. We could instead write:
Using case, we get something like:
Which, in this case, is actually not much cleaner.

## A File Reading Program

The code might look something like:
The only interesting things here are the calls to bracket, which ensure the that the program lives on, regardless of whether there's a failure or not; and the writeLoop function. Note that we need to pass the handle returned by openFile (through bracket to this function, so it knows where to write the input to).
Alternatively, we can make a version with readFile and writeFile that doesn't use bracket:
# WikiLang/Mi'kmaq Phonology

Template:RFD
The Mi'kmaq language's phonology consists of 6 short vowels and 5 long vowels as well as 11 consonants. In Mi'kmaq, each letter represents a sound.
The tables below show the Mi'kmaq characters in Francis-Smith and Listuguj orthographies (see Mi'kmaq Orthographies for more details) and their pronunciation using the symbols from the International Phonetic Alphabet (IPA).

## Vowels

| Francis-Smith | Listuguj | IPA |
| a | a | ɑ |
| a' | a' | ɑː |
| e | e | e |
| e' | e' | eː |
| i | i | i |
| i' | i' | iː |
| ɨ | ' | ə |
| o | o | o |
| o' | o' | oː |
| u | u | u |
| u' | u' | uː |

## Diphthongs

| Francis-Smith | Listuguj | IPA |
| aw | aw | aw |
| ay | ay | aj |
| ew | ew | ew |
| ey | ey | ej |
| iw | iw | iw |

## Consonants

| Francis-Smith | Listuguj | IPA |
| j | j | tʃ or dʒ |
| k | g | k or g |
| kw | gw | kw or kʷ |
| l | l | l |
| m | m | m |
| n | n | n |
| p | p | p or b |
| q | q | x or ɣ |
| qw | qw | xw or xʷ |
| s | s | s or z |
| t | t | t or d |
| w | w | w |
| y | y | j |
When consonants are doubled, they must be pronounced with double length, as if there were a word break between the two consonants. Also note that in Mi'kmaq, the consonants l, m and n can also form syllabic peaks like vowels. As such, words don't need to have a vowel, as it is the case with "kmtm" (or "gmtm" depending on the orthography) meaning "mountain" for example.

## Portal

* Mi'kmaq Portal
# WikiLang/Mi'kmaq Colors

Template:RFD
There is no adjectives per say in Mi'kmaq. The words in the table below are verbs meaning "He/she/it is black" (or another color). All verbs shown are for the third person and are singular.
Note: All words in the below table are in Francis-Smith orthography (see Mi'kmaq Orthographies for more details).
| English | Mi'kmaq |
| Black | Maqtawe'k, maqtewe'k |
| Blue | Ewne'k |
| Brown | Tupkwanamu'k, jijijuwaqitewamu'k |
| Dark green | Stoqonamuksit |
| Deep blue | Musqunamu'k |
| Gold | Wisawisuliewey |
| Green | Stoqonamu'k |
| Grey | Sulieweyamu'k |
| Light blue | Musik'ewamuk' |
| Orange | Nikjawiknejewamu'k, wisawsulieweyamu'k |
| Pink | Nijinjewamu'k |
| Purple | Nisqunamu'k |
| Red | Mekwe'k |
| Yellow | Wisawe'k, wataptek |
| White | Wape'k |

## Portal

* WikiLang/Mi'kmaq Portal
# WikiLang/Mi'kmaq Dialects

Template:RFD

## Listuguj

The Listuguj dialect, also called Restigouche, is from the Gaspé Peninsula in Eastern Quebec. It uses the orthography of the same name (see Mi'kmaq Orthographies for more details).

## Portal

* Mi'kmaq Portal
# WikiLang/Mi'kmaq Orthographies

Template:RFD Mi'kmaq language used different orthographies throughout its history. Today, two orthographies are principally used: Francis-Smith and Listuguj.
Mi'kmaq orthographies :
| IPA | a | aː | e | eː | i | iː | ə | tʃ | k | l | m | n | o | oː | p | x | s | t | u | uː | w | j |
| Francis-Smith | a | a'/á | e | e'/é | i | i'/í | ɨ | j | k | l | m | n | o | o'/ó | p | q | s | t | u | u'/ú | w | y |
| Listuguj | a | a' | e | e' | i | i' | ' | j | g | l | m | n | o | o' | p | q | s | t | u | u' | w | y |
| Lexicon | a | a: | e | e: | i | i: | ɨ | j | k | l | m | n | o | o: | p | q | s | t | u | u: | w | y |
| Pacifique | a | a | e | e | i | i | | tj | g | l | m | n | ô | ô | p | | s | t | o | o | | |
| Rand | ă | a â | ĕ | ā | ĭ | e | ŭ | ch | c k | l | m | n | ŏ | o ō | b | h | s | d t | ŏŏ | oo u | w | y |

## Francis-Smith

The Francis-Smith orthography has been developed in the 1970s by Doug Smith and Bernard Francis. It is the most used orthography today, especially in Nova Scotia.
It has 5 short vowels, a, e, i, o and u, and 5 long vowels, a', e', i', o' and u'. It has 11 consonants: j, k, l, m, n, p, q, s, t, kw, qw, and i can also act as a consonant.

## Listuguj

The Listuguj (or Restigouche) orthography is mainly used in Quebec. The main difference from the Francis-Smith orthography is that the "k" letter is replaced by "g".

## Portal

* WikiLang/Mi'kmaq Portal
# WikiLang/Mi'kmaq Calendar

Template:RFD
This article is part of the vocabulary section of the Mi'kmaq language. It shows the words in Mi'kmaq for the seasons, the months of the year and the days of the week with their English equivalent.
Note: All words in the below tables are in Francis-Smith orthography (see Mi'kmaq orthographies for more details).

## Seasons

| English | Mi'kmaq |
| Autumn | Toqwa'q |
| Spring | Siwkw |
| Summer | Nipk |
| Winter | Kesik |

## Months

| English | Mi'kmaq | Literal meaning |
| January | Penamujuiku's | Frost fish runs |
| February | Apuknajit | Snow blinding month |
| March | Siewkesiku's | Forerunner of Spring |
| April | Penatmuiku's | Egg hatching time |
| May | Etquljuiku's | Frog croaking time |
| June | Nipniku's | Leaves are budding time |
| July | Peskewiku's | Animal fur thickens time |
| August | Kisikwekewiku's | Ripening time |
| September | Wikumkewiku's | Mate calling time |
| October | Wikewiku's | Animal fattening time |
| November | Keptekewiku's | Frost month |
| December | Kesikewiku's | Winter month |

## Days of the week

| English | Mi'kmaq | Pronunciation |
| Monday | Amskwesewey | [am.sgwɛ.sɛ.wɛ] |
| Tuesday | Ta'puewey | [daː.bu.ɛ.wɛ] |
| Wednesday | Si'stewey | |
| Thursday | Ne'wewey | |
| Friday | Kweltamultimk | |
| Saturday | Kespitekɨtek | |
| Sunday | Ekntie'wimk | |

## Portal

* WikiLang/Mi'kmaq Portal
# WikiLang/Mi'kmaq Grammar

Template:RFD
Note: all the words in the below tables are in Francis-Smith orthography, for more details, see Mi'kmaq Orthographies.

## Word types

Like other Algonquian languages, Mi'kmaq language has three types of words: nouns, verbs and particles. The particles' type includes the pronouns.

### Nouns

Mi'kmaq language has two genders for nouns which is called "animacy" for Algonquian languages. Those are "animate" and "inanimate". Animate nouns include persons, animals, spirits and large trees as well as some objects. While it is straightforward for persons and animals, it is not the case for all words. For example, in Mi'kmaq, the calf of the leg is an animate noun while the thigh is inanimate and a raspberry is animate while a strawberry is inanimate.
Examples of animate nouns :
| Mi'kmaq word | English translation |
| aqam | snowshoe |
| awa'qi'kn | crooked knife |
| klitaw | raspberry |
| mg'sn | shoe |
| snawei | maple tree |
| tmaqan | smoking pipe |
Examples of inanimate nouns :
| Mi'kmaq word | English translation |
| a's'tuo'kuom | church |
| ki'k | your house |
| klpisun | anchor |
| lasup | soup |
| pe'skewey | gun |
| sismo'qon | sugar |

### Verbs

In Mi'kmaq verbs are either transitive or intransitive and both can be animate or inanimate. The animacy of intransitive verbs depends on the animacy of the subject they refer to. For example, the Mi'kmaq verb "she moves fast" is intransitive animate while the verb "it moves fast" is intransitive inanimate. For transitive verbs, it is the animacy of the object that determines the animacy of the verb. For example, the verb "I pull him" is transitive animate while the verb "I pull it" is transitive inanimate. Note that we assume here that "it" is an inanimate Mi'kmaq word, but remember that some objects are also animate words.
Examples of verbs :
| Mi'kmaq word | English translation | Type |
| Alasumteket | He/she walks through snow | Intransitive animate |
| Ekuma'toq | He/she anchors it (inanimate object) | Transitive inanimate |
| Etlatalk | He/she is eating | Intransitive animate |
| Malqutk | He/she eats it (inanimate food) | Transitive inanimate |
| Malqomatl | He/she eats it (animate food) | Transitive animate |
| Meni'kwet | He/she strips off birch bark | Intransitive animate |

### Particles

Particles is the third word type in Algonquian languages, including Mi'kmaq. Since pronouns in Mi'kmaq are not inflected, they are considered as the same word type as particles.
Examples of particles :
| Mi'kmaq word | English translation |
| aqq | and |
| ala' | that |
| ki'l | you |
| nankmiw | immediately |
| ni'n | I |
| ula' | this |

## Portal

* WikiLang/Mi'kmaq Portal
# WikiLang/Mi'kmaq Lesson 1: Greetings

Template:RFD
Below are samples of simple conversations with their English translations demonstrating the basic greetings in Mi'kmaq.
Note: The Mi'kmaq text in the below table is in Francis-Smith orthography (see Mi'kmaq Orthographies for more details).
| Mi'kmaq text | English translation |
| - Kwe', welta'si na' nike' pekisin. - Kwe', wela'lin wet-tluen. | - Hello, I'm glad you came. - Hello, thank you for saying that. |
| - Me'talein? - O' welei. Katu ki'l? - Welei. | - How are you? - Oh, I'm fine. What about you? - I'm fine. |
| - Me'talein? - O' mu weleyim. | - How are you? - Oh, I'm not well. |
| - Welikiskik a? - Welikiskik tata'n. | - It's a nice day? - It's a nice day indeed. |
| - Me' katu taliaq? - O' mu awsami talianuk. | - So, what's going on? - Oh not too much. |
| - Taluisin? - Teluisi ... | - What is your name? - My name is ... |
| - Weli eksitpu'k. | - Good morning. |
| - Elmien nike'? - E'e. Ketu' wije'win? | - Are you going home now? - Yes. Do you want to come with me? |
| - Piskwa'. - Wela'lin. - Weliaq. Pa'si. | - Come in. - Thank you. - You're welcome. Sit down. |
| - Smaqa'si etuk nike'. - Nmu'ltes app. | - I think I will go now. - See you again. |

## Portal

* WikiLang/Mi'kmaq Portal
# WikiLang/Mi'kmaq Currency

Template:RFD This article is part of the vocabulary section of the Mi'kmaq language. Since the vast majority of Mi'kmaq speakers are in Canada, this page lists the Mi'kmaq words for the different denominations for Canadian money.
Note: All names in the below table are in Francis-Smith orthography (see Mi'kmaq orthographies for more details).
| Value | Mi'kmaq word |
| 1¢ | Smalkiewey |
| 5¢ | Kopitewey |
| 10¢ | Salpo'lkewey |
| 25¢ | Kaltie |
| 1$ | Newtayik |
| 2$ | Tapuayikl |
| 5$ | Nanayikl |
| 10$ | Metla'sayikl |
| 20$ | Tapuiskekayikl |
| 50$ | Naniskekayikl |
| 100$ | Kaskimtlnaqnayikl |

## Portal

* WikiLang/Mi'kmaq Portal
# WikiLang/Mi'kmaq Food

Template:RFD
This article is part of the vocabulary section of the Mi'kmaq language. It lists a sample of words for food in Mi'kmaq with their English equivalent.
Note: All words in the below table are in Francis-Smith orthography (see Mi'kmaq orthographies for more details).
| English | Mi'kmaq |
| Bannock | Lusknikn (n.i.) |
| Bread | Pipnaqan (n.i.) |
| Butter | Mlakeju'mi (n.i.) |
| Buttermilk | Sikupaqte'kn (n.a.) |
| Carrot | Enmapejit (n.a.) |
| Cheese | Te'plmasewei (n.i.), tepplma'sigewei (n.i.) |
| Cinnamon | Pkwejijk (n.) |
| Coffee | Kaffi (n.i.) |
| Cookie | Kalkunawei (n.i.) |
| Food | Mijipjewei (n.i.) |
| Food for breakfast | Eksitpu'kwatalmgewei (n.i.) |
| Hazelnut | Malipqwanj (n.i.) |
| Jam | Paskoqsikn (n.i.), passoqsikn (n.i.) |
| Meal | Mijjuaqan (n.i.) |
| Meat | Wius (n.i.) |
| Milk | Mlakejk (n.a.) |
| Moose fat | Tia'mu'mi (n.i.) |
| Moose meat | Tia'muei (n.i.) |
| Mushroom | Lketu (n.a.), sqoljui'kan (n.i.) |
| Pancake | Sisla'kwa'taqan (n.i.) |
| Pea soup | Wenjua'p'tew (n.i.) |
| Pepper | Te'pisewei (n.i.) |
| Porcupine meat | Matuesuei (n.i.) |
| Pork | Kulkwi'suei (n.i.) |
| Pork fat, lard | Kulkwi'su'mi (n.i.) |
| Potato | Tapatat (n.a.), tap'tan (n.a.) |
| Rhubarb | Sewlugowei (n.a.) |
| Salt | Salawei (n.i.) |
| Squash | Ejkujk (n.i.) |
| Soup | Lasup (n.i.) |
| Sugar | Sismoqn (n.i.), sismo'qon (n.i.) |
| Tea | P'tewei (n.i.) |
| Tomato | Tmato's (n.a.) |
| Turnips | Wenj'u'sɨpekn (n.a.), wenju'suqapun (n.a.), tanaps (n.a.) |
| Water | Samuqwan (n.i.) |
| Wild potato | S'kepn (n.a.) |
| Wine | Moqopa'q (n.i.) |

## Portal

* WikiLang/Mi'kmaq Portal
# XRX/Patching you Browser to Support XForms
## Motivation

Your browser does not support the W3C XForms standards.

## Method

Browsers should detect the XForms namespace and just render the XForms controls per the XForms specification. But many browsers vendors do not do this, perhaps because they feel that supporting their own standards is in the best interest of their stockholders. Whatever the reason, it can make life difficult for the website developer.
If you are running Firefox, you can load an extension that will correctly recognize the XForms namespace and do the right thing.
Some XForms implementations, such as XSLTForms, require you to add an XML Processing instruction to correctly convert XForms controls into HTML+JavaScript.
Here is an example of how to do this using the XML processing-instruction function within eXist:
This will return a sequence of two items, the Processing instruction and the form itself.
You can also build your own "form assembler" that uses a title, model and content.
Back: Background Technologies • Next: XSLTForms and eXist
# XRX/Regular Expression Builder
## Motivation

You want to build a form that will allow you to quickly test replacement regular expressions using XQuery's replace function.

## Method

We will use an XForms client that has several controls:
* a test input string
* a regular expression to evaluate
* a new string to be used in the replace
* a "submit" trigger (button)
When the submit trigger is pressed, the three strings are sent to the server and the XQuery replace function will be executed. The result is an output text area that is returned from the server to the web browser.
This tool will allow you to do things such as test your URL-rewrite rules.

## Link to Working Application

Replace Test

## XQuery Replace Tester

If you are using eXist, just place this file on the server in the same folder as your XForms test driver.
In the example above I used a test folder on the localhost:
http://localhost:8080/exist/rest/db/test/replace/replace.xq

## Discussion

This shows that you can quickly build tools to teach yourself complex functions like regular expression handling. You can also use the XQuery match function, which returns true or false if the regular expression matches an input string.
There are two variations of this example that are interesting. The first is where you replace the input form with a large text area for doing global replacements of large blocks of text. The second is where you replace the input box with a selection list with common replacement patterns.

## References

Examples of replacement functions can be found here:
w3c replace examples
Back: Dictionary Editor • Next: Autoincrement File ID
# XRX/Searchability
## Motivation

You want to make it easy for users to find data items with your XRX application.

## Method

Each XRX application that keeps search-able data will have a sub-collection with search features in it. At a minimum this is a search form and a search query. In some cases the search query script is also used to render the search form.
# XRX/Move a Resource
## Motivation

You want to create an XForms front end to an XQuery script that will move a resource from one collection to another collection or you want to move a collection from one location to another location.

## Method

We will build a simple XForms front end to the xmldb:move operator. The syntax of the move operators is the following:
xmldb:move($from-collection, $to-collection, $resource)
Where:
If you are going to move a complete collection the format is:
xmldb:move($old-collection, $new-collection)
On this case the operation:
would result in the bar collection being located inside the foo collection:
To test this application create two test collections in your eXist database such as:

## Sample XForms Client

Create the following xhtml file:

## Sample XQuery on Server

The following XQuery named "move.xq" should be placed in the same collection as the move.xhtml file.

## Discussion

Now that you have the core move code done, you can enhance the program to browse to a specific collection for the source and browse to a specific collection for the destination. You can also create a listing of the resources in the source and destination folders.
Back: Autoincrement File ID • Next: Save File Dialog
# XRX/NIEM Services
## Motivation

You want to create a set of web services based on the National Information Exchange Model.

## Process

We will import the core NIEM data as an XML Schema.
To do this first download the NIEM data model from the NIEM.gov web site. Inside the zip file you will find a niem-core directory with a niem-core.xsd file. Add this to your database and run the following XQuery on it:

## Sample Code

This will return a list of all the NIEM complex types.
This XQuery can in turn be used as a web service to populate an XForms suggestion list similar to the Suggestion example in the XForms cookbook.
Back: Table Sorting • Next: Product Ratings