emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Exporting to FreeMind - opened in FreeMind failed
@ 2012-07-08 18:40 Csanyi Pal
  2012-07-09 13:24 ` Bastien
  0 siblings, 1 reply; 19+ messages in thread
From: Csanyi Pal @ 2012-07-08 18:40 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I have installed GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, GTK+ Version
 2.24.10) of 2012-04-07 on trouble, modified by Debian
installed from Debian repository,

and FreeMind
Version 0.9.0
installed from Debian repository.

In Emacs Org-mode I export a tree by running
C-c C-e m

and try open the exported file.mm in FreeMind but get error message:
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException:
com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Element
type "br" must be followed by either attribute specifications, ">" or
"/>". 

What is the problem here?
Is this an Org-mode, or FreeMind bug, or both?

-- 
Regards from Pal

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-08 18:40 Exporting to FreeMind - opened in FreeMind failed Csanyi Pal
@ 2012-07-09 13:24 ` Bastien
  2012-07-09 13:28   ` Lennart Borgman
  2012-07-09 13:37   ` Csanyi Pal
  0 siblings, 2 replies; 19+ messages in thread
From: Bastien @ 2012-07-09 13:24 UTC (permalink / raw)
  To: Csanyi Pal; +Cc: Lennart Borgman, emacs-orgmode

Hi,

Csanyi Pal <csanyipal@gmail.com> writes:

> In Emacs Org-mode I export a tree by running
> C-c C-e m
>
> and try open the exported file.mm in FreeMind but get error message:
> javax.xml.transform.TransformerException:
> javax.xml.transform.TransformerException:
> com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Element
> type "br" must be followed by either attribute specifications, ">" or
> "/>". 

org-freemind.el correctly exports .org files using <br />

can you try to replace "<br />" by "<br/>" (with no space) 
and see if that's better?  I doubt it's so simple.

In any case, surely a bug if org-freemind.el.  I'm copying 
Lennart, the author of this library.

Best,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 13:24 ` Bastien
@ 2012-07-09 13:28   ` Lennart Borgman
  2012-07-09 13:40     ` Csanyi Pal
  2012-07-09 13:37   ` Csanyi Pal
  1 sibling, 1 reply; 19+ messages in thread
From: Lennart Borgman @ 2012-07-09 13:28 UTC (permalink / raw)
  To: Bastien; +Cc: Csanyi Pal, emacs-orgmode

Csanyi, do you have an example you can mail me privately? (Or to the
list, if you prefer, of course.)

On Mon, Jul 9, 2012 at 3:24 PM, Bastien <bzg@gnu.org> wrote:
> Hi,
>
> Csanyi Pal <csanyipal@gmail.com> writes:
>
>> In Emacs Org-mode I export a tree by running
>> C-c C-e m
>>
>> and try open the exported file.mm in FreeMind but get error message:
>> javax.xml.transform.TransformerException:
>> javax.xml.transform.TransformerException:
>> com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Element
>> type "br" must be followed by either attribute specifications, ">" or
>> "/>".
>
> org-freemind.el correctly exports .org files using <br />
>
> can you try to replace "<br />" by "<br/>" (with no space)
> and see if that's better?  I doubt it's so simple.
>
> In any case, surely a bug if org-freemind.el.  I'm copying
> Lennart, the author of this library.
>
> Best,
>
> --
>  Bastien

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 13:24 ` Bastien
  2012-07-09 13:28   ` Lennart Borgman
@ 2012-07-09 13:37   ` Csanyi Pal
  2012-07-09 13:42     ` Bastien
  1 sibling, 1 reply; 19+ messages in thread
From: Csanyi Pal @ 2012-07-09 13:37 UTC (permalink / raw)
  To: emacs-orgmode

Bastien <bzg@gnu.org> writes:

> Hi,
>
> Csanyi Pal <csanyipal@gmail.com> writes:
>
>> In Emacs Org-mode I export a tree by running
>> C-c C-e m
>>
>> and try open the exported file.mm in FreeMind but get error message:
>> javax.xml.transform.TransformerException:
>> javax.xml.transform.TransformerException:
>> com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Element
>> type "br" must be followed by either attribute specifications, ">" or
>> "/>". 
>
> org-freemind.el correctly exports .org files using <br />
>
> can you try to replace "<br />" by "<br/>" (with no space) 
> and see if that's better?  I doubt it's so simple.

I try out to replace "<br />" by "<br/>" (with no space) and see again
that FreeMind can't open this file.mm.

> In any case, surely a bug if org-freemind.el.  I'm copying 
> Lennart, the author of this library.

Note however that I don't have installed org-mode but in my Emacs still
I can to edit in org-mode probably because my Version of Emacs support
org-mode by default?

-- 
Regards from Pal

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 13:28   ` Lennart Borgman
@ 2012-07-09 13:40     ` Csanyi Pal
  0 siblings, 0 replies; 19+ messages in thread
From: Csanyi Pal @ 2012-07-09 13:40 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 167 bytes --]

Lennart Borgman <lennart.borgman@gmail.com> writes:

> Csanyi, do you have an example you can mail me privately? (Or to the
> list, if you prefer, of course.)

Sure!


[-- Attachment #2: The Arduino.org file --]
[-- Type: application/octet-stream, Size: 6996 bytes --]

* [[file:///home/csanyipal/Emacs/Org-mode/Minden_tudas_ide_vezet__innen_talalhato_meg.org][Vissza a Mindentudáshoz C-c C-o]]
* Arduino
** Exhibition What you've made with Arduino. 
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?board=projects

** Uses Of Arduino

Arduino is a general purpose I/O board. 

 - An example of input would be a temperature sensor,
 - an example of an output would be a relay. 

In this example application, the Arduino could be programmed as
 - a computerised temperature controller.

This is but one application of the Arduino, others would include: 
 - Robots, 
 - Embedded Electronics, 
 - Web Devices via Ethernet Shield, etc. 

A range of completed projects can be found on the Arduino Forums here:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?board=projects

** Melyik Arduino készletet vegyem meg?

*** Fritzing Starter Kit / Arduino Uno
http://www.tinkersoup.de/product_info.php?products_id=363

*** STARTER KIT Get a Fritzing Starter Kit to start learning Arduino and support Fritzing
http://fritzing.org/shop/starter-kit/

** PéldaProjektek Arduinoval
*** dallam_Melody_terv
**** A program magyarázata
***** A program fejléce
/* Dallam
     Ez a program piezoelektromos kristállyal dallamot játszik.
     Megfelelő gyakorisággal 5V (HIGH), majd 0V (LOW) feszültséget
     küld a piezoelektromos kristályra.
     A HIGH és a LOW érték váltakozása tulajdonképpen szögletes
     hullám: 
       __    _____      ___    5V
     _|  |__|     |____|   |_  0V
 
     szün magas szün magas szün magas szün

     A négyszögletes hullám szöneteinek, magas, és alacsony részeinek
     időbeli hosszúsága meghatározható az Arduino lap
     beprogramozásával.

     A piezoelektromos kristály egy vékony, körlap alakú fémlemezre
     (membránra) van ragasztva, ezért a membrán a kristállyal együtt
     változtatja alakját:
     5V feszültségnél a membrán kidomborodik,
     0V feszültségnél pedig visszanyeri eredeti, sík alakját.

    Ha a membrán ezt az alakváltozást megfelelő gyakorisággal
    (rezgésszámmal) teszi, akkor a rezgésszámnak megfelelő 
    magasságú hangot hoz létre.

    Az áramkör:
         * a piezo elem + (piros) kivezetése csatlakozik a digitális
           9-ik tűre, 
         * a piezo elem  - (fekete) kivezetése le van földelve.

    http://arduino.cc/en/Tutorial/Melody

    Készítette: dátum ismeretlen,
    szerző ismeretlen.
    Magyarra fordította és átírta 2012. július 6-án
    Csányi Pál

     A zenei hang magasságát a következő matematikai képlet adja:

        magasIdeje = időszakasz / 2 = 1 / (2 x hangRezgésszáma)

        ahol a magasIdeje a négyszöghullám magas részének időbeli
        hossza.
        A különböző hangokat a következő táblázat írja le:

     hang    rezgésszám   időszakasz magasIdeje
        c       261 Hz       3830       1915
        d       294 Hz       3400       1700
        e       329 Hz       3038       1519
        f       349 Hz       2864       1432
        g       392 Hz       2550       1275
        a       440 Hz       2272       1136
        h       493 Hz       2028       1014
        C       523 Hz       1912        956

     Ez a példaprogram public domain szabadalom alatt áll. 
*/
***** A program testének részei
****** Változók megadása
// a piezoelektromos kristály "hangszóró" a 9-ik
// digitális tűre van csatlakoztatva
int hangszoroTu = 9;

// a hangjegyek száma a dallamban
int ahangjegyekszama = 28;

// a dallam egy sorozatban vannak megadva
// a betűk a hangjegyeket, a végén a szóköz szünetet jelent
char hangjegysor[] = "cecegg cecegg Chagfa gfedcc ";

// az egymást követő hangok hossza egy sorozatban van megadva
int hanghossza[] = { 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1,1,1,1,2,1,1,1,1,1,1,2,1,4 };
int sebesseg = 300;

****** szolaHang függvény
// létrehozza a szolaHang függvényt, amely megszólaltatja a hangot
// a függvény két egész számú változót kér, melyek: hang és idotartam
// a hang változó a szolaHangjegyHangja függvényben kap értéket
// Itt rezegtetjük meg a membránt!
void szolaHang(int hang, int idotartam) {

  // alább egy ismétlődő rész következik:
  // tedd, míg i kisebb (időtartam x 1000L) értékénél
  // Mi az L? Válasz itt, az U & L formatters cím alatt:
  // http://arduino.cc/en/Reference/IntegerConstants
  // i értékét növeld minden lépésben a hang változó kétszeresével
  // i += hang * 2 jelentése: i = i + hang x 2
  for (long i = 0; i < idotartam * 1000L; i += hang * 2) {
    // 5 Voltot adunk a piezoelektromos kristálynak
    digitalWrite(hangszoroTu, HIGH);
    // legyen 5V a 'hang' értékének megfelelő időhosszig
    delayMicroseconds(hang);
    // 0 Voltot adunk a piezoelektromos kristálynak
    digitalWrite(hangszoroTu, LOW);
    // legyen 0V a 'hang' értékének megfelelő időhosszig
    delayMicroseconds(hang);
  }
}

****** szolaHangjegyHangja függvény
// létrehozza a szolaHangjegyHangja függvényt, amely
// kér egy betűjel (hangjegy), és egy egész számú (idotartam) változót,
// megadja a hangjegyek neveit és a nekik megfelelő hosszúságú időtartamot,
// ameddig majd kapják a szögletes hullám MAGAS értékét.
void szolaHangjegyHangja(char hangjegy, int idotartam) {
  char hangjegynevek[] = { 'c', 'd', 'e', 'f', 'g', 'a', 'h', 'C' };
  int hangok[] = { 1915, 1700, 1519, 1432, 1275, 1136, 1014, 956 };

  // lejátssza a hangjegy nevének megfelelő hangot
  for (int i = 0; i < 8; i++) {
    // ha a hangjegyeknevek sorozatból az egyik elem
    // megfelel a hangjegy változó pillanatnyi értékének
    if (hangjegynevek[i] == hangjegy) {
      // akkor hívja a szolaHang függvényt a következő változókkal
      // hangok és időtartam; itt a hangok[i] értéke
      // lesz a hang változó értéke a szolaHang függvény számára
      szolaHang(hangok[i], idotartam);
   }
  }
}

****** Beállítások
// a digitális 9-ik tű kimenetre van beállítva
void setup() {
  pinMode(hangszoroTu, OUTPUT);
}

****** Hurok rész
// ezt ismételgeti, míg le nem játszotta
// a dallam összes hangját
void loop() {
  // amíg az i változó értéke nem lesz 28, addig ismétli
  // a lenti parancsokat, vagyis lejátssza egyenként
  // a dallam hangjait
  for (int i = 0; i < ahangjegyekszama; i++) {
    // ha a hangjegysor eleme szóköz,
    if (hangjegysor[i] == ' ') {
      // akkor szünet lesz egy darabig
      delay(hanghossza[i] * sebesseg); // ez a szünet
    } else {
      // máskülönben megszólal egy hang a hangjegysorból
      // hívjuk a szolaHangjegyHangja függvényt, megadva neki a
      // a hangjegysor egyik elemét, a hang hosszát szorozva a sebességgel
      szolaHangjegyHangja(hangjegysor[i], hanghossza[i] * sebesseg);
    }

    // szünet a dallam hangjai között
    delay(sebesseg / 2);
  }
}

***** A program működése

*** a

[-- Attachment #3: The exported Arduino.mm file --]
[-- Type: application/x-freemind, Size: 12325 bytes --]

<?xml version="1.0" encoding="utf-8"?>
<map version="0.9.0">
<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->
<node text="Arduino.org" background_color="#00bfff">
<richcontent TYPE="NOTE"><html><head></head><body><p>--org-mode: WHOLE FILE</p></body></html></richcontent>
<node text="[[file:///home/csanyipal/Emacs/Org-mode/Minden_tudas_ide_vezet__innen_talalhato_meg.org][Vissza a Mindentudáshoz C-c C-o]]" position="left">
</node>
<node text="Arduino">
<node text="Exhibition What you've made with Arduino.">
<node style="bubble" background_color="#eeee00">
<richcontent TYPE="NODE"><html>
<head>
<style type="text/css">
<!--
p { margin-top: 0 }
-->
</style>
</head>
<body>
<p>http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?board=projects<br /></p>
</body>
</html>
</richcontent>
<richcontent TYPE="NOTE"><html><head></head><body><p>-- This is more about "Exhibition What you've made with Arduino." --</p></body></html></richcontent>
</node>
</node>
<node text="Uses Of Arduino">
<node style="bubble" background_color="#eeee00">
<richcontent TYPE="NODE"><html>
<head>
<style type="text/css">
<!--
p { margin-top: 0 }
-->
</style>
</head>
<body>
<p><br />Arduino is a general purpose I/O board. </p><p><br /> - An example of input would be a temperature sensor,<br /> - an example of an output would be a relay. </p><p><br />In this example application, the Arduino could be programmed as<br /> - a computerised temperature controller.</p><p><br />This is but one application of the Arduino, others would include: <br /> - Robots, <br /> - Embedded Electronics, <br /> - Web Devices via Ethernet Shield, etc. </p><p><br />A range of completed projects can be found on the Arduino Forums here:<br /<a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?board=projects">http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?board=projects</a><br /></p>
</body>
</html>
</richcontent>
<richcontent TYPE="NOTE"><html><head></head><body><p>-- This is more about "Uses Of Arduino" --</p></body></html></richcontent>
</node>
</node>
<node text="Melyik Arduino készletet vegyem meg?" folded="true">
<node text="Fritzing Starter Kit / Arduino Uno">
<node style="bubble" background_color="#eeee00">
<richcontent TYPE="NODE"><html>
<head>
<style type="text/css">
<!--
p { margin-top: 0 }
-->
</style>
</head>
<body>
<p>http://www.tinkersoup.de/product_info.php?products_id=363<br /></p>
</body>
</html>
</richcontent>
<richcontent TYPE="NOTE"><html><head></head><body><p>-- This is more about "Fritzing Starter Kit / Arduino Uno" --</p></body></html></richcontent>
</node>
</node>
<node text="STARTER KIT Get a Fritzing Starter Kit to start learning Arduino and support Fritzing">
<node style="bubble" background_color="#eeee00">
<richcontent TYPE="NODE"><html>
<head>
<style type="text/css">
<!--
p { margin-top: 0 }
-->
</style>
</head>
<body>
<p>http://fritzing.org/shop/starter-kit/<br /></p>
</body>
</html>
</richcontent>
<richcontent TYPE="NOTE"><html><head></head><body><p>-- This is more about "STARTER KIT Get a Fritzing Starter Kit to start learning Arduino and support Fritzing" --</p></body></html></richcontent>
</node>
</node>
</node>
<node text="PéldaProjektek Arduinoval">
</node>
<node text="dallam_Melody_terv">
<node text="A program magyarázata">
<node text="A program fejléce">
<node style="bubble" background_color="#eeee00">
<richcontent TYPE="NODE"><html>
<head>
<style type="text/css">
<!--
p { margin-top: 0 }
-->
</style>
</head>
<body>
<p>/* Dallam<br />     Ez a program piezoelektromos kristállyal dallamot játszik.<br />     Megfelel&#x151 gyakorisággal 5V (HIGH), majd 0V (LOW) feszültséget<br />     küld a piezoelektromos kristályra.<br />     A HIGH és a LOW érték váltakozása tulajdonképpen szögletes<br />     hullám: <br />       __    _____      ___    5V<br />     _|  |__|     |____|   |_  0V</p><p><br />     szün magas szün magas szün magas szün</p><p><br />     A négyszögletes hullám szöneteinek, magas, és alacsony részeinek<br />     id&#x151beli hosszúsága meghatározható az Arduino lap<br />     beprogramozásával.</p><p><br />     A piezoelektromos kristály egy vékony, körlap alakú fémlemezre<br />     (membránra) van ragasztva, ezért a membrán a kristállyal együtt<br />     változtatja alakját:<br />     5V feszültségnél a membrán kidomborodik,<br />     0V feszültségnél pedig visszanyeri eredeti, sík alakját.</p><p><br />    Ha a membrán ezt az alakváltozást megfelel&#x151 gyakorisággal<br />    (rezgésszámmal) teszi, akkor a rezgésszámnak megfelel&#x151 <br />    magasságú hangot hoz létre.</p><p><br />    Az áramkör:<br />         * a piezo elem + (piros) kivezetése csatlakozik a digitális<br />           9-ik t&#x171re, <br />         * a piezo elem  - (fekete) kivezetése le van földelve.</p><p><br />   <a href="http://arduino.cc/en/Tutorial/Melody">http://arduino.cc/en/Tutorial/Melody</a></p><p><br />    Készítette: dátum ismeretlen,<br />    szerz&#x151 ismeretlen.<br />    Magyarra fordította és átírta 2012. július 6-án<br />    Csányi Pál</p><p><br />     A zenei hang magasságát a következ&#x151 matematikai képlet adja:</p><p><br />        magasIdeje = id&#x151szakasz / 2 = 1 / (2 x hangRezgésszáma)</p><p><br />        ahol a magasIdeje a négyszöghullám magas részének id&#x151beli<br />        hossza.<br />        A különböz&#x151 hangokat a következ&#x151 táblázat írja le:</p><p><br />     hang    rezgésszám   id&#x151szakasz magasIdeje<br />        c       261 Hz       3830       1915<br />        d       294 Hz       3400       1700<br />        e       329 Hz       3038       1519<br />        f       349 Hz       2864       1432<br />        g       392 Hz       2550       1275<br />        a       440 Hz       2272       1136<br />        h       493 Hz       2028       1014<br />        C       523 Hz       1912        956</p><p><br />     Ez a példaprogram public domain szabadalom alatt áll. <br />*/</p>
</body>
</html>
</richcontent>
<richcontent TYPE="NOTE"><html><head></head><body><p>-- This is more about "A program fejléce" --</p></body></html></richcontent>
</node>
</node>
<node text="A program testének részei">
<node text="Változók megadása">
<node style="bubble" background_color="#eeee00">
<richcontent TYPE="NODE"><html>
<head>
<style type="text/css">
<!--
p { margin-top: 0 }
-->
</style>
</head>
<body>
<p>// a piezoelektromos kristály &quot;hangszóró&quot; a 9-ik<br />// digitális t&#x171re van csatlakoztatva<br />int hangszoroTu = 9;</p><p><br />// a hangjegyek száma a dallamban<br />int ahangjegyekszama = 28;</p><p><br />// a dallam egy sorozatban vannak megadva<br />// a bet&#x171k a hangjegyeket, a végén a szóköz szünetet jelent<br />char hangjegysor[] = &quot;cecegg cecegg Chagfa gfedcc &quot;;</p><p><br />// az egymást követ&#x151 hangok hossza egy sorozatban van megadva<br />int hanghossza[] = { 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1,1,1,1,2,1,1,1,1,1,1,2,1,4 };<br />int sebesseg = 300;<br /></p>
</body>
</html>
</richcontent>
<richcontent TYPE="NOTE"><html><head></head><body><p>-- This is more about "Változók megadása" --</p></body></html></richcontent>
</node>
</node>
<node text="szolaHang függvény">
<node style="bubble" background_color="#eeee00">
<richcontent TYPE="NODE"><html>
<head>
<style type="text/css">
<!--
p { margin-top: 0 }
-->
</style>
</head>
<body>
<p>// létrehozza a szolaHang függvényt, amely megszólaltatja a hangot<br />// a függvény két egész számú változót kér, melyek: hang és idotartam<br />// a hang változó a szolaHangjegyHangja függvényben kap értéket<br />// Itt rezegtetjük meg a membránt!<br />void szolaHang(int hang, int idotartam) {</p><p><br />  // alább egy ismétl&#x151d&#x151 rész következik:<br />  // tedd, míg i kisebb (id&#x151tartam x 1000L) értékénél<br />  // Mi az L? Válasz itt, az U &amp; L formatters cím alatt:<br />  //<a href="http://arduino.cc/en/Reference/IntegerConstants">http://arduino.cc/en/Reference/IntegerConstants</a><br />  // i értékét növeld minden lépésben a hang változó kétszeresével<br />  // i += hang * 2 jelentése: i = i + hang x 2<br />  for (long i = 0; i &lt; idotartam * 1000L; i += hang * 2) {<br />    // 5 Voltot adunk a piezoelektromos kristálynak<br />    digitalWrite(hangszoroTu, HIGH);<br />    // legyen 5V a 'hang' értékének megfelel&#x151 id&#x151hosszig<br />    delayMicroseconds(hang);<br />    // 0 Voltot adunk a piezoelektromos kristálynak<br />    digitalWrite(hangszoroTu, LOW);<br />    // legyen 0V a 'hang' értékének megfelel&#x151 id&#x151hosszig<br />    delayMicroseconds(hang);<br />  }<br />}<br /></p>
</body>
</html>
</richcontent>
<richcontent TYPE="NOTE"><html><head></head><body><p>-- This is more about "szolaHang függvény" --</p></body></html></richcontent>
</node>
</node>
<node text="szolaHangjegyHangja függvény">
<node style="bubble" background_color="#eeee00">
<richcontent TYPE="NODE"><html>
<head>
<style type="text/css">
<!--
p { margin-top: 0 }
-->
</style>
</head>
<body>
<p>// létrehozza a szolaHangjegyHangja függvényt, amely<br />// kér egy bet&#x171jel (hangjegy), és egy egész számú (idotartam) változót,<br />// megadja a hangjegyek neveit és a nekik megfelel&#x151 hosszúságú id&#x151tartamot,<br />// ameddig majd kapják a szögletes hullám MAGAS értékét.<br />void szolaHangjegyHangja(char hangjegy, int idotartam) {<br />  char hangjegynevek[] = { 'c', 'd', 'e', 'f', 'g', 'a', 'h', 'C' };<br />  int hangok[] = { 1915, 1700, 1519, 1432, 1275, 1136, 1014, 956 };</p><p><br />  // lejátssza a hangjegy nevének megfelel&#x151 hangot<br />  for (int i = 0; i &lt; 8; i++) {<br />    // ha a hangjegyeknevek sorozatból az egyik elem<br />    // megfelel a hangjegy változó pillanatnyi értékének<br />    if (hangjegynevek[i] == hangjegy) {<br />      // akkor hívja a szolaHang függvényt a következ&#x151 változókkal<br />      // hangok és id&#x151tartam; itt a hangok[i] értéke<br />      // lesz a hang változó értéke a szolaHang függvény számára<br />      szolaHang(hangok[i], idotartam);<br />   }<br />  }<br />}<br /></p>
</body>
</html>
</richcontent>
<richcontent TYPE="NOTE"><html><head></head><body><p>-- This is more about "szolaHangjegyHangja függvény" --</p></body></html></richcontent>
</node>
</node>
<node text="Beállítások">
<node style="bubble" background_color="#eeee00">
<richcontent TYPE="NODE"><html>
<head>
<style type="text/css">
<!--
p { margin-top: 0 }
-->
</style>
</head>
<body>
<p>// a digitális 9-ik t&#x171 kimenetre van beállítva<br />void setup() {<br />  pinMode(hangszoroTu, OUTPUT);<br />}<br /></p>
</body>
</html>
</richcontent>
<richcontent TYPE="NOTE"><html><head></head><body><p>-- This is more about "Beállítások" --</p></body></html></richcontent>
</node>
</node>
<node text="Hurok rész">
<node style="bubble" background_color="#eeee00">
<richcontent TYPE="NODE"><html>
<head>
<style type="text/css">
<!--
p { margin-top: 0 }
-->
</style>
</head>
<body>
<p>// ezt ismételgeti, míg le nem játszotta<br />// a dallam összes hangját<br />void loop() {<br />  // amíg az i változó értéke nem lesz 28, addig ismétli<br />  // a lenti parancsokat, vagyis lejátssza egyenként<br />  // a dallam hangjait<br />  for (int i = 0; i &lt; ahangjegyekszama; i++) {<br />    // ha a hangjegysor eleme szóköz,<br />    if (hangjegysor[i] == ' ') {<br />      // akkor szünet lesz egy darabig<br />      delay(hanghossza[i] * sebesseg); // ez a szünet<br />    } else {<br />      // máskülönben megszólal egy hang a hangjegysorból<br />      // hívjuk a szolaHangjegyHangja függvényt, megadva neki a<br />      // a hangjegysor egyik elemét, a hang hosszát szorozva a sebességgel<br />      szolaHangjegyHangja(hangjegysor[i], hanghossza[i] * sebesseg);<br />    }</p><p><br />    // szünet a dallam hangjai között<br />    delay(sebesseg / 2);<br />  }<br />}<br /></p>
</body>
</html>
</richcontent>
<richcontent TYPE="NOTE"><html><head></head><body><p>-- This is more about "Hurok rész" --</p></body></html></richcontent>
</node>
</node>
</node>
</node>
</node>
<node text="a">
</node>
</node>
</node>
</map>

[-- Attachment #4: Type: text/plain, Size: 22 bytes --]


-- 
Regards from Pal

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 13:37   ` Csanyi Pal
@ 2012-07-09 13:42     ` Bastien
  2012-07-09 13:43       ` Csanyi Pal
  0 siblings, 1 reply; 19+ messages in thread
From: Bastien @ 2012-07-09 13:42 UTC (permalink / raw)
  To: Csanyi Pal; +Cc: emacs-orgmode

Csanyi Pal <csanyipal@gmail.com> writes:

> Note however that I don't have installed org-mode but in my Emacs still
> I can to edit in org-mode probably because my Version of Emacs support
> org-mode by default?

You can get Org's version with M-x org-version RET.

GNU Emacs comes with Org.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 13:42     ` Bastien
@ 2012-07-09 13:43       ` Csanyi Pal
  2012-07-09 13:53         ` Bastien
  0 siblings, 1 reply; 19+ messages in thread
From: Csanyi Pal @ 2012-07-09 13:43 UTC (permalink / raw)
  To: emacs-orgmode

Bastien <bzg@gnu.org> writes:

> Csanyi Pal <csanyipal@gmail.com> writes:
>
>> Note however that I don't have installed org-mode but in my Emacs still
>> I can to edit in org-mode probably because my Version of Emacs support
>> org-mode by default?
>
> You can get Org's version with M-x org-version RET.

Indeed! I have Org-mode version 6.33x

-- 
Regards from Pal

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 13:43       ` Csanyi Pal
@ 2012-07-09 13:53         ` Bastien
  2012-07-09 14:13           ` Csanyi Pal
  0 siblings, 1 reply; 19+ messages in thread
From: Bastien @ 2012-07-09 13:53 UTC (permalink / raw)
  To: Csanyi Pal; +Cc: emacs-orgmode

Csanyi Pal <csanyipal@gmail.com> writes:

> Indeed! I have Org-mode version 6.33x

This is prehistory, close to the Big Bang.

Please update your Emacs or your Org!

Not only for freemind, but for anything else...

-- 
 Bastien

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 13:53         ` Bastien
@ 2012-07-09 14:13           ` Csanyi Pal
  2012-07-09 14:34             ` Bastien
  2012-07-09 14:35             ` Csanyi Pal
  0 siblings, 2 replies; 19+ messages in thread
From: Csanyi Pal @ 2012-07-09 14:13 UTC (permalink / raw)
  To: emacs-orgmode

Bastien <bzg@gnu.org> writes:

> Csanyi Pal <csanyipal@gmail.com> writes:
>
>> Indeed! I have Org-mode version 6.33x
>
> This is prehistory, close to the Big Bang.
>
> Please update your Emacs or your Org!

OK
After I search with 'aptitude search emacs' command, I find that emacs24
is installable on my debian system, so I installed it.

So now I have Org-mode version 7.8.11

Now, when I try to export a tree in Arduino.org I get a message:
Can't find library org

What can I do now?

-- 
Regards from Pal

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 14:13           ` Csanyi Pal
@ 2012-07-09 14:34             ` Bastien
  2012-07-09 14:55               ` Csanyi Pal
  2012-07-09 14:35             ` Csanyi Pal
  1 sibling, 1 reply; 19+ messages in thread
From: Bastien @ 2012-07-09 14:34 UTC (permalink / raw)
  To: Csanyi Pal; +Cc: emacs-orgmode

Csanyi Pal <csanyipal@gmail.com> writes:

> Now, when I try to export a tree in Arduino.org I get a message:
> Can't find library org
>
> What can I do now?

What happens if you open afile.org in Emacs 24?

What is the value of major-mode?

What format do you export to?

Did you try all this with emacs -Q?

Please help us help you.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 14:13           ` Csanyi Pal
  2012-07-09 14:34             ` Bastien
@ 2012-07-09 14:35             ` Csanyi Pal
  1 sibling, 0 replies; 19+ messages in thread
From: Csanyi Pal @ 2012-07-09 14:35 UTC (permalink / raw)
  To: emacs-orgmode

Csanyi Pal <csanyipal@gmail.com> writes:

[snip]

> So now I have Org-mode version 7.8.11
>
> Now, when I try to export a tree in Arduino.org I get a message:
> Can't find library org
>
> What can I do now?

I find the solution: I installed emacs24-el and after that I can to
export again the tree from Arduino.org to Arduino.mm.

However I still get error in FreeMind when I'm trying to open
Arduino.mm: 

javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException:
com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Element
type "br" must be followed by either attribute specifications, ">" or
"/>". 

-- 
Regards from Pal

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 14:34             ` Bastien
@ 2012-07-09 14:55               ` Csanyi Pal
  2012-07-09 15:23                 ` Nick Dokos
  0 siblings, 1 reply; 19+ messages in thread
From: Csanyi Pal @ 2012-07-09 14:55 UTC (permalink / raw)
  To: emacs-orgmode

Bastien <bzg@gnu.org> writes:

[snip]

> What is the value of major-mode?

It's 'Org'.

> What format do you export to?

Maybe I don't understand your question. English isn't my first
language. 

I'm exporting .org format to .mm format.

> Did you try all this with emacs -Q?

What is 'emacs -Q'?

> Please help us help you.

I want to do so.

-- 
Regards from Pal

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 14:55               ` Csanyi Pal
@ 2012-07-09 15:23                 ` Nick Dokos
  2012-07-09 15:55                   ` Csanyi Pal
  0 siblings, 1 reply; 19+ messages in thread
From: Nick Dokos @ 2012-07-09 15:23 UTC (permalink / raw)
  To: Csanyi Pal; +Cc: emacs-orgmode

Csanyi Pal <csanyipal@gmail.com> wrote:

> Bastien <bzg@gnu.org> writes:
> 
> [snip]
> 
> > What is the value of major-mode?
> 
> It's 'Org'.
> 
> > What format do you export to?
> 
> Maybe I don't understand your question. English isn't my first
> language. 
> 
> I'm exporting .org format to .mm format.
> 
> > Did you try all this with emacs -Q?
> 
> What is 'emacs -Q'?
> 

``man emacs'' will tell you the basics: it starts emacs without any of
your setup (both personal and site-wide) intruding, so it distinguishes
between configuration problems and bugs. Coincidentally, another thread
running concurrently with this one (the one entitled
"org-export-select-tags"), also deals with similar problems.

> > Please help us help you.
> 
> I want to do so.
> 

Good: if you can reproduce the problem with emacs -Q, then it's probably
a bug in org (presumably org-freemind.el in this case). In that case, the
best thing you can do is to trim down your input file as far as possible
while still reproducing the problem (that's what people refer to as an ECM
around these parts) and post that on the list with a description of what
needs to be done.

All this and more is described in the FAQ, the manual and various
messages in the mailing list. To get you started, here is a pointer to
the relevant entry in the FAQ:

     http://orgmode.org/worg/org-faq.html#bug-reporting

Nick

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 15:23                 ` Nick Dokos
@ 2012-07-09 15:55                   ` Csanyi Pal
  2012-07-09 16:22                     ` Nick Dokos
  0 siblings, 1 reply; 19+ messages in thread
From: Csanyi Pal @ 2012-07-09 15:55 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]

Nick Dokos <nicholas.dokos@hp.com> writes:

[snip]

> Good: if you can reproduce the problem with emacs -Q, then it's probably
> a bug in org (presumably org-freemind.el in this case). In that case, the
> best thing you can do is to trim down your input file as far as possible
> while still reproducing the problem (that's what people refer to as an ECM
> around these parts) and post that on the list with a description of what
> needs to be done.

OK
I started emacs with the command 'emacs -Q' and did the followings:

Open the Test.org file in Org mode.
Export the tree into FreeMind format with the command:
C-c C-e m

Get the Test.mm file.

In the FreeMind when I open the Test.mm file, I get the following
message: 

Error while parsing file:freemind.main.XMLParseException: XML Parse
Exception during parsing of a map element at line 80: Expected: map 

What can I do further to solve this problem?

The attached files:


[-- Attachment #2: Test.org file --]
[-- Type: text/x-org, Size: 3645 bytes --]

***** A program testének részei
****** Változók megadása
// a piezoelektromos kristály "hangszóró" a 9-ik
// digitális tűre van csatlakoztatva
int hangszoroTu = 9;

// a hangjegyek száma a dallamban
int ahangjegyekszama = 28;

// a dallam egy sorozatban vannak megadva
// a betűk a hangjegyeket, a végén a szóköz szünetet jelent
char hangjegysor[] = "cecegg cecegg Chagfa gfedcc ";

// az egymást követő hangok hossza egy sorozatban van megadva
int hanghossza[] = { 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1,1,1,1,2,1,1,1,1,1,1,2,1,4 };
int sebesseg = 300;

****** szolaHang függvény
// létrehozza a szolaHang függvényt, amely megszólaltatja a hangot
// a függvény két egész számú változót kér, melyek: hang és idotartam
// a hang változó a szolaHangjegyHangja függvényben kap értéket
// Itt rezegtetjük meg a membránt!
void szolaHang(int hang, int idotartam) {

  // alább egy ismétlődő rész következik:
  // tedd, míg i kisebb (időtartam x 1000L) értékénél
  // Mi az L? Válasz itt, az U & L formatters cím alatt:
  // http://arduino.cc/en/Reference/IntegerConstants
  // i értékét növeld minden lépésben a hang változó kétszeresével
  // i += hang * 2 jelentése: i = i + hang x 2
  for (long i = 0; i < idotartam * 1000L; i += hang * 2) {
    // 5 Voltot adunk a piezoelektromos kristálynak
    digitalWrite(hangszoroTu, HIGH);
    // legyen 5V a 'hang' értékének megfelelő időhosszig
    delayMicroseconds(hang);
    // 0 Voltot adunk a piezoelektromos kristálynak
    digitalWrite(hangszoroTu, LOW);
    // legyen 0V a 'hang' értékének megfelelő időhosszig
    delayMicroseconds(hang);
  }
}

****** szolaHangjegyHangja függvény
// létrehozza a szolaHangjegyHangja függvényt, amely
// kér egy betűjel (hangjegy), és egy egész számú (idotartam) változót,
// megadja a hangjegyek neveit és a nekik megfelelő hosszúságú időtartamot,
// ameddig majd kapják a szögletes hullám MAGAS értékét.
void szolaHangjegyHangja(char hangjegy, int idotartam) {
  char hangjegynevek[] = { 'c', 'd', 'e', 'f', 'g', 'a', 'h', 'C' };
  int hangok[] = { 1915, 1700, 1519, 1432, 1275, 1136, 1014, 956 };

  // lejátssza a hangjegy nevének megfelelő hangot
  for (int i = 0; i < 8; i++) {
    // ha a hangjegyeknevek sorozatból az egyik elem
    // megfelel a hangjegy változó pillanatnyi értékének
    if (hangjegynevek[i] == hangjegy) {
      // akkor hívja a szolaHang függvényt a következő változókkal
      // hangok és időtartam; itt a hangok[i] értéke
      // lesz a hang változó értéke a szolaHang függvény számára
      szolaHang(hangok[i], idotartam);
   }
  }
}

****** Beállítások
// a digitális 9-ik tű kimenetre van beállítva
void setup() {
  pinMode(hangszoroTu, OUTPUT);
}

****** Hurok rész
// ezt ismételgeti, míg le nem játszotta
// a dallam összes hangját
void loop() {
  // amíg az i változó értéke nem lesz 28, addig ismétli
  // a lenti parancsokat, vagyis lejátssza egyenként
  // a dallam hangjait
  for (int i = 0; i < ahangjegyekszama; i++) {
    // ha a hangjegysor eleme szóköz,
    if (hangjegysor[i] == ' ') {
      // akkor szünet lesz egy darabig
      delay(hanghossza[i] * sebesseg); // ez a szünet
    } else {
      // máskülönben megszólal egy hang a hangjegysorból
      // hívjuk a szolaHangjegyHangja függvényt, megadva neki a
      // a hangjegysor egyik elemét, a hang hosszát szorozva a sebességgel
      szolaHangjegyHangja(hangjegysor[i], hanghossza[i] * sebesseg);
    }

    // szünet a dallam hangjai között
    delay(sebesseg / 2);
  }
}

[-- Attachment #3: Test.mm file --]
[-- Type: application/x-freemind, Size: 7120 bytes --]

[-- Attachment #4: Type: text/plain, Size: 22 bytes --]


-- 
Regards from Pal

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 15:55                   ` Csanyi Pal
@ 2012-07-09 16:22                     ` Nick Dokos
  2012-07-09 16:46                       ` Csanyi Pal
  0 siblings, 1 reply; 19+ messages in thread
From: Nick Dokos @ 2012-07-09 16:22 UTC (permalink / raw)
  To: Csanyi Pal; +Cc: emacs-orgmode

Csanyi Pal <csanyipal@gmail.com> wrote:

> OK
> I started emacs with the command 'emacs -Q' and did the followings:
> 
> Open the Test.org file in Org mode.
> Export the tree into FreeMind format with the command:
> C-c C-e m
> 
> Get the Test.mm file.
> 
> In the FreeMind when I open the Test.mm file, I get the following
> message: 
> 
> Error while parsing file:freemind.main.XMLParseException: XML Parse
> Exception during parsing of a map element at line 80: Expected: map 
> 
> What can I do further to solve this problem?
> 

Well, I suspect that none of us here is a freemind "expert" (I know I'm
not), with the possible exception of Lennart Borgman, the author of
org-freemind.el. So the main question is: is this a bug in freemind or
is this a bug in the org freemind export? You have not posted the org
file that produced all of this (or if you have, I cannot see it clearly
in your mail). That could help. If Lennart could be persuaded to take a
look, that might help.  And if you could be persuaded to simplify the
example (ECM = complete *minimal* example) so that it exhibits the
problem with as few nodes as possible (I count seven nodes in your .mm
file: does it need to be that complicated?), that might help.

Here is an example of an org file that produces a map that works:

--8<---------------cut here---------------start------------->8---

* foo

this
--8<---------------cut here---------------end--------------->8---

How much do you need to complicate it to produce something that does
*not* work?

Nick

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 16:22                     ` Nick Dokos
@ 2012-07-09 16:46                       ` Csanyi Pal
  2012-07-10 15:41                         ` Manish
  0 siblings, 1 reply; 19+ messages in thread
From: Csanyi Pal @ 2012-07-09 16:46 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos <nicholas.dokos@hp.com> writes:

> Csanyi Pal <csanyipal@gmail.com> wrote:

[snip]

> Well, I suspect that none of us here is a freemind "expert" (I know I'm
> not), with the possible exception of Lennart Borgman, the author of
> org-freemind.el. So the main question is: is this a bug in freemind or
> is this a bug in the org freemind export? You have not posted the org
> file that produced all of this (or if you have, I cannot see it clearly
> in your mail). That could help. If Lennart could be persuaded to take a
> look, that might help.  And if you could be persuaded to simplify the
> example (ECM = complete *minimal* example) so that it exhibits the
> problem with as few nodes as possible (I count seven nodes in your .mm
> file: does it need to be that complicated?), that might help.
>
> Here is an example of an org file that produces a map that works:
>
>
> * foo
>
> this
>
> How much do you need to complicate it to produce something that does
> *not* work?

I start with this example abowe and exported it successfully.
Then I add again and again more and more to it and get a working
file.mm that I can to open in FreeMind.

Finally I did export successfully my first Arduino.org file, that is
complicated. 

Well, it works now.

What did I to get it working?

I'm start using an .emacs file that has the following content  only:
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(default ((t (:family "Bitstream Vera Sans Mono" :foundry \
 "bitstream" :slant normal :weight normal :height 150 \
:width normal))))) 


(setq initial-frame-alist
 '((top . 16) (left . 64) (width . 122) (height . 41))
)

(setq default-frame-alist
 '((top . 16) (left . 64) (width . 122) (height . 41)
  (menu-bar-lines . 1) (vertical-scroll-bars . nil) \
(tool-bar-lines . 0))
)

Thank you for help!

-- 
Regards from Pal

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-09 16:46                       ` Csanyi Pal
@ 2012-07-10 15:41                         ` Manish
  2012-07-10 16:52                           ` Csanyi Pal
  0 siblings, 1 reply; 19+ messages in thread
From: Manish @ 2012-07-10 15:41 UTC (permalink / raw)
  To: Csanyi Pal; +Cc: emacs-orgmode

On Mon, Jul 9, 2012 at 10:16 PM, Csanyi Pal wrote:
> Nick Dokos writes:
>
>> Csanyi Pal wrote:
>
> [snip]
>
>> Well, I suspect that none of us here is a freemind "expert" (I know I'm
>> not), with the possible exception of Lennart Borgman, the author of
>> org-freemind.el. So the main question is: is this a bug in freemind or
>> is this a bug in the org freemind export? You have not posted the org
>> file that produced all of this (or if you have, I cannot see it clearly
>> in your mail). That could help. If Lennart could be persuaded to take a
>> look, that might help.  And if you could be persuaded to simplify the
>> example (ECM = complete *minimal* example) so that it exhibits the
>> problem with as few nodes as possible (I count seven nodes in your .mm
>> file: does it need to be that complicated?), that might help.
>>
>> Here is an example of an org file that produces a map that works:
>>
>>
>> * foo
>>
>> this
>>
>> How much do you need to complicate it to produce something that does
>> *not* work?
>
> I start with this example abowe and exported it successfully.
> Then I add again and again more and more to it and get a working
> file.mm that I can to open in FreeMind.
>
> Finally I did export successfully my first Arduino.org file, that is
> complicated.

I tried exporting to Freemind with your file and I also got the same
error while I can export my other files.  There's definitely something
funny going on with your file (perhaps encoding related?)

>
> Well, it works now.
>
> What did I to get it working?
>
> I'm start using an .emacs file that has the following content  only:
> (custom-set-variables
>  ;; custom-set-variables was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
>  )
> (custom-set-faces
>  ;; custom-set-faces was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
>  '(default ((t (:family "Bitstream Vera Sans Mono" :foundry \
>  "bitstream" :slant normal :weight normal :height 150 \
> :width normal)))))
>
>
> (setq initial-frame-alist
>  '((top . 16) (left . 64) (width . 122) (height . 41))
> )
>
> (setq default-frame-alist
>  '((top . 16) (left . 64) (width . 122) (height . 41)
>   (menu-bar-lines . 1) (vertical-scroll-bars . nil) \
> (tool-bar-lines . 0))
> )
>

Can you now export your original (that was attached in previous emails)
file also now?

Regards
Manish

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-10 15:41                         ` Manish
@ 2012-07-10 16:52                           ` Csanyi Pal
  2012-07-10 16:55                             ` Csanyi Pal
  0 siblings, 1 reply; 19+ messages in thread
From: Csanyi Pal @ 2012-07-10 16:52 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2817 bytes --]

Manish <mailtomanish.sharma@gmail.com> writes:

> On Mon, Jul 9, 2012 at 10:16 PM, Csanyi Pal wrote:
>> Nick Dokos writes:
>>
>>> Csanyi Pal wrote:
>>
>> [snip]
>>
>>> Well, I suspect that none of us here is a freemind "expert" (I know I'm
>>> not), with the possible exception of Lennart Borgman, the author of
>>> org-freemind.el. So the main question is: is this a bug in freemind or
>>> is this a bug in the org freemind export? You have not posted the org
>>> file that produced all of this (or if you have, I cannot see it clearly
>>> in your mail). That could help. If Lennart could be persuaded to take a
>>> look, that might help.  And if you could be persuaded to simplify the
>>> example (ECM = complete *minimal* example) so that it exhibits the
>>> problem with as few nodes as possible (I count seven nodes in your .mm
>>> file: does it need to be that complicated?), that might help.
>>>
>>> Here is an example of an org file that produces a map that works:
>>>
>>>
>>> * foo
>>>
>>> this
>>>
>>> How much do you need to complicate it to produce something that does
>>> *not* work?
>>
>> I start with this example abowe and exported it successfully.
>> Then I add again and again more and more to it and get a working
>> file.mm that I can to open in FreeMind.
>>
>> Finally I did export successfully my first Arduino.org file, that is
>> complicated.
>
> I tried exporting to Freemind with your file and I also got the same
> error while I can export my other files.  There's definitely something
> funny going on with your file (perhaps encoding related?)
>
>>
>> Well, it works now.
>>
>> What did I to get it working?
>>
>> I'm start using an .emacs file that has the following content  only:
>> (custom-set-variables
>>  ;; custom-set-variables was added by Custom.
>>  ;; If you edit it by hand, you could mess it up, so be careful.
>>  ;; Your init file should contain only one such instance.
>>  ;; If there is more than one, they won't work right.
>>  )
>> (custom-set-faces
>>  ;; custom-set-faces was added by Custom.
>>  ;; If you edit it by hand, you could mess it up, so be careful.
>>  ;; Your init file should contain only one such instance.
>>  ;; If there is more than one, they won't work right.
>>  '(default ((t (:family "Bitstream Vera Sans Mono" :foundry \
>>  "bitstream" :slant normal :weight normal :height 150 \
>> :width normal)))))
>>
>>
>> (setq initial-frame-alist
>>  '((top . 16) (left . 64) (width . 122) (height . 41))
>> )
>>
>> (setq default-frame-alist
>>  '((top . 16) (left . 64) (width . 122) (height . 41)
>>   (menu-bar-lines . 1) (vertical-scroll-bars . nil) \
>> (tool-bar-lines . 0))
>> )
>>
>
> Can you now export your original (that was attached in previous emails)
> file also now?

I can now export my original file also now.

I attach it here again:


[-- Attachment #2: the attached Arduino.org file --]
[-- Type: text/x-org, Size: 6990 bytes --]

* [[file:///home/csanyipal/Emacs/Org-mode/Minden_tudas_ide_vezet__innen_talalhato_meg.org][Vissza a Mindentudáshoz C-c C-o]]
* Arduino
** Exhibition What you've made with Arduino. 
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?board=projects

** Uses Of Arduino

Arduino is a general purpose I/O board. 

 - An example of input would be a temperature sensor,
 - an example of an output would be a relay. 

In this example application, the Arduino could be programmed as
 - a computerised temperature controller.

This is but one application of the Arduino, others would include: 
 - Robots, 
 - Embedded Electronics, 
 - Web Devices via Ethernet Shield, etc. 

A range of completed projects can be found on the Arduino Forums here:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?board=projects

** Melyik Arduino készletet vegyem meg?
*** Fritzing Starter Kit / Arduino Uno
http://www.tinkersoup.de/product_info.php?products_id=363

*** STARTER KIT Get a Fritzing Starter Kit to start learning Arduino and support Fritzing
http://fritzing.org/shop/starter-kit/

** PéldaProjektek Arduinoval
*** dallam_Melody_terv
**** A program magyarázata
***** A program fejléce
/* Dallam
     Ez a program piezoelektromos kristállyal dallamot játszik.
     Megfelelő gyakorisággal 5V (HIGH), majd 0V (LOW) feszültséget
     küld a piezoelektromos kristályra.
     A HIGH és a LOW érték váltakozása tulajdonképpen szögletes
     hullám: 
       __    _____      ___    5V
     _|  |__|     |____|   |_  0V
 
     szün magas szün magas szün magas szün

     A négyszögletes hullám szöneteinek, magas, és alacsony részeinek
     időbeli hosszúsága meghatározható az Arduino lap
     beprogramozásával.

     A piezoelektromos kristály egy vékony, körlap alakú fémlemezre
     (membránra) van ragasztva, ezért a membrán a kristállyal együtt
     változtatja alakját:
     5V feszültségnél a membrán kidomborodik,
     0V feszültségnél pedig visszanyeri eredeti, sík alakját.

    Ha a membrán ezt az alakváltozást megfelelő gyakorisággal
    (rezgésszámmal) teszi, akkor a rezgésszámnak megfelelő 
    magasságú hangot hoz létre.

    Az áramkör:
         - a piezo elem + (piros) kivezetése csatlakozik a digitális
           9-ik tűre, 
         - a piezo elem  - (fekete) kivezetése le van földelve.

    http://arduino.cc/en/Tutorial/Melody

    Készítette: dátum ismeretlen,
    szerző ismeretlen.
    Magyarra fordította és átírta 2012. július 6-án
    Csányi Pál

     A zenei hang magasságát a következő matematikai képlet adja:

        magasIdeje = időszakasz / 2 = 1 / (2 x hangRezgésszáma)

        ahol a magasIdeje a négyszöghullám magas részének időbeli
        hossza.
        A különböző hangokat a következő táblázat írja le:

     hang    rezgésszám   időszakasz magasIdeje
        c       261 Hz       3830       1915
        d       294 Hz       3400       1700
        e       329 Hz       3038       1519
        f       349 Hz       2864       1432
        g       392 Hz       2550       1275
        a       440 Hz       2272       1136
        h       493 Hz       2028       1014
        C       523 Hz       1912        956

     Ez a példaprogram public domain szabadalom alatt áll. 
*/
***** A program testének részei
****** Változók megadása
// a piezoelektromos kristály "hangszóró" a 9-ik
// digitális tűre van csatlakoztatva
int hangszoroTu = 9;

// a hangjegyek száma a dallamban
int ahangjegyekszama = 28;

// a dallam egy sorozatban vannak megadva
// a betűk a hangjegyeket, a végén a szóköz szünetet jelent
char hangjegysor[] = "cecegg cecegg Chagfa gfedcc ";

// az egymást követő hangok hossza egy sorozatban van megadva
int hanghossza[] = { 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1,1,1,1,2,1,1,1,1,1,1,2,1,4 };
int sebesseg = 300;

****** szolaHang függvény
// létrehozza a szolaHang függvényt, amely megszólaltatja a hangot
// a függvény két egész számú változót kér, melyek: hang és idotartam
// a hang változó a szolaHangjegyHangja függvényben kap értéket
// Itt rezegtetjük meg a membránt!
void szolaHang(int hang, int idotartam) {

  // alább egy ismétlődő rész következik:
  // tedd, míg i kisebb (időtartam x 1000L) értékénél
  // Mi az L? Válasz itt, az U & L formatters cím alatt:
  // http://arduino.cc/en/Reference/IntegerConstants
  // i értékét növeld minden lépésben a hang változó kétszeresével
  // i += hang * 2 jelentése: i = i + hang x 2
  for (long i = 0; i < idotartam * 1000L; i += hang * 2) {
    // 5 Voltot adunk a piezoelektromos kristálynak
    digitalWrite(hangszoroTu, HIGH);
    // legyen 5V a 'hang' értékének megfelelő időhosszig
    delayMicroseconds(hang);
    // 0 Voltot adunk a piezoelektromos kristálynak
    digitalWrite(hangszoroTu, LOW);
    // legyen 0V a 'hang' értékének megfelelő időhosszig
    delayMicroseconds(hang);
  }
}

****** szolaHangjegyHangja függvény
// létrehozza a szolaHangjegyHangja függvényt, amely
// kér egy betűjel (hangjegy), és egy egész számú (idotartam) változót,
// megadja a hangjegyek neveit és a nekik megfelelő hosszúságú időtartamot,
// ameddig majd kapják a szögletes hullám MAGAS értékét.
void szolaHangjegyHangja(char hangjegy, int idotartam) {
  char hangjegynevek[] = { 'c', 'd', 'e', 'f', 'g', 'a', 'h', 'C' };
  int hangok[] = { 1915, 1700, 1519, 1432, 1275, 1136, 1014, 956 };

  // lejátssza a hangjegy nevének megfelelő hangot
  for (int i = 0; i < 8; i++) {
    // ha a hangjegyeknevek sorozatból az egyik elem
    // megfelel a hangjegy változó pillanatnyi értékének
    if (hangjegynevek[i] == hangjegy) {
      // akkor hívja a szolaHang függvényt a következő változókkal
      // hangok és időtartam; itt a hangok[i] értéke
      // lesz a hang változó értéke a szolaHang függvény számára
      szolaHang(hangok[i], idotartam);
   }
  }
}

****** Beállítások
// a digitális 9-ik tű kimenetre van beállítva
void setup() {
  pinMode(hangszoroTu, OUTPUT);
}

****** Hurok rész
// ezt ismételgeti, míg le nem játszotta
// a dallam összes hangját
void loop() {
  // amíg az i változó értéke nem lesz 28, addig ismétli
  // a lenti parancsokat, vagyis lejátssza egyenként
  // a dallam hangjait
  for (int i = 0; i < ahangjegyekszama; i++) {
    // ha a hangjegysor eleme szóköz,
    if (hangjegysor[i] == ' ') {
      // akkor szünet lesz egy darabig
      delay(hanghossza[i] * sebesseg); // ez a szünet
    } else {
      // máskülönben megszólal egy hang a hangjegysorból
      // hívjuk a szolaHangjegyHangja függvényt, megadva neki a
      // a hangjegysor egyik elemét, a hang hosszát szorozva a sebességgel
      szolaHangjegyHangja(hangjegysor[i], hanghossza[i] * sebesseg);
    }

    // szünet a dallam hangjai között
    delay(sebesseg / 2);
  }
}

***** A program működése



[-- Attachment #3: Type: text/plain, Size: 50 bytes --]


I attach the exported Arduino.mm file too again:

[-- Attachment #4: the attached Arduino.mm file --]
[-- Type: application/x-freemind, Size: 14482 bytes --]

[-- Attachment #5: Type: text/plain, Size: 22 bytes --]


-- 
Regards from Pal

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Exporting to FreeMind - opened in FreeMind failed
  2012-07-10 16:52                           ` Csanyi Pal
@ 2012-07-10 16:55                             ` Csanyi Pal
  0 siblings, 0 replies; 19+ messages in thread
From: Csanyi Pal @ 2012-07-10 16:55 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 327 bytes --]

Csanyi Pal <csanyipal@gmail.com> writes:

> Manish <mailtomanish.sharma@gmail.com> writes:

>> Can you now export your original (that was attached in previous emails)
>> file also now?
>
> I can now export my original file also now.
>
> I attach it here again:

I'm trying to attach the Arduino.org file again, but not inline:

[-- Attachment #2: the attached Arduino.org file --]
[-- Type: text/x-org, Size: 6990 bytes --]

* [[file:///home/csanyipal/Emacs/Org-mode/Minden_tudas_ide_vezet__innen_talalhato_meg.org][Vissza a Mindentudáshoz C-c C-o]]
* Arduino
** Exhibition What you've made with Arduino. 
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?board=projects

** Uses Of Arduino

Arduino is a general purpose I/O board. 

 - An example of input would be a temperature sensor,
 - an example of an output would be a relay. 

In this example application, the Arduino could be programmed as
 - a computerised temperature controller.

This is but one application of the Arduino, others would include: 
 - Robots, 
 - Embedded Electronics, 
 - Web Devices via Ethernet Shield, etc. 

A range of completed projects can be found on the Arduino Forums here:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?board=projects

** Melyik Arduino készletet vegyem meg?
*** Fritzing Starter Kit / Arduino Uno
http://www.tinkersoup.de/product_info.php?products_id=363

*** STARTER KIT Get a Fritzing Starter Kit to start learning Arduino and support Fritzing
http://fritzing.org/shop/starter-kit/

** PéldaProjektek Arduinoval
*** dallam_Melody_terv
**** A program magyarázata
***** A program fejléce
/* Dallam
     Ez a program piezoelektromos kristállyal dallamot játszik.
     Megfelelő gyakorisággal 5V (HIGH), majd 0V (LOW) feszültséget
     küld a piezoelektromos kristályra.
     A HIGH és a LOW érték váltakozása tulajdonképpen szögletes
     hullám: 
       __    _____      ___    5V
     _|  |__|     |____|   |_  0V
 
     szün magas szün magas szün magas szün

     A négyszögletes hullám szöneteinek, magas, és alacsony részeinek
     időbeli hosszúsága meghatározható az Arduino lap
     beprogramozásával.

     A piezoelektromos kristály egy vékony, körlap alakú fémlemezre
     (membránra) van ragasztva, ezért a membrán a kristállyal együtt
     változtatja alakját:
     5V feszültségnél a membrán kidomborodik,
     0V feszültségnél pedig visszanyeri eredeti, sík alakját.

    Ha a membrán ezt az alakváltozást megfelelő gyakorisággal
    (rezgésszámmal) teszi, akkor a rezgésszámnak megfelelő 
    magasságú hangot hoz létre.

    Az áramkör:
         - a piezo elem + (piros) kivezetése csatlakozik a digitális
           9-ik tűre, 
         - a piezo elem  - (fekete) kivezetése le van földelve.

    http://arduino.cc/en/Tutorial/Melody

    Készítette: dátum ismeretlen,
    szerző ismeretlen.
    Magyarra fordította és átírta 2012. július 6-án
    Csányi Pál

     A zenei hang magasságát a következő matematikai képlet adja:

        magasIdeje = időszakasz / 2 = 1 / (2 x hangRezgésszáma)

        ahol a magasIdeje a négyszöghullám magas részének időbeli
        hossza.
        A különböző hangokat a következő táblázat írja le:

     hang    rezgésszám   időszakasz magasIdeje
        c       261 Hz       3830       1915
        d       294 Hz       3400       1700
        e       329 Hz       3038       1519
        f       349 Hz       2864       1432
        g       392 Hz       2550       1275
        a       440 Hz       2272       1136
        h       493 Hz       2028       1014
        C       523 Hz       1912        956

     Ez a példaprogram public domain szabadalom alatt áll. 
*/
***** A program testének részei
****** Változók megadása
// a piezoelektromos kristály "hangszóró" a 9-ik
// digitális tűre van csatlakoztatva
int hangszoroTu = 9;

// a hangjegyek száma a dallamban
int ahangjegyekszama = 28;

// a dallam egy sorozatban vannak megadva
// a betűk a hangjegyeket, a végén a szóköz szünetet jelent
char hangjegysor[] = "cecegg cecegg Chagfa gfedcc ";

// az egymást követő hangok hossza egy sorozatban van megadva
int hanghossza[] = { 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1,1,1,1,2,1,1,1,1,1,1,2,1,4 };
int sebesseg = 300;

****** szolaHang függvény
// létrehozza a szolaHang függvényt, amely megszólaltatja a hangot
// a függvény két egész számú változót kér, melyek: hang és idotartam
// a hang változó a szolaHangjegyHangja függvényben kap értéket
// Itt rezegtetjük meg a membránt!
void szolaHang(int hang, int idotartam) {

  // alább egy ismétlődő rész következik:
  // tedd, míg i kisebb (időtartam x 1000L) értékénél
  // Mi az L? Válasz itt, az U & L formatters cím alatt:
  // http://arduino.cc/en/Reference/IntegerConstants
  // i értékét növeld minden lépésben a hang változó kétszeresével
  // i += hang * 2 jelentése: i = i + hang x 2
  for (long i = 0; i < idotartam * 1000L; i += hang * 2) {
    // 5 Voltot adunk a piezoelektromos kristálynak
    digitalWrite(hangszoroTu, HIGH);
    // legyen 5V a 'hang' értékének megfelelő időhosszig
    delayMicroseconds(hang);
    // 0 Voltot adunk a piezoelektromos kristálynak
    digitalWrite(hangszoroTu, LOW);
    // legyen 0V a 'hang' értékének megfelelő időhosszig
    delayMicroseconds(hang);
  }
}

****** szolaHangjegyHangja függvény
// létrehozza a szolaHangjegyHangja függvényt, amely
// kér egy betűjel (hangjegy), és egy egész számú (idotartam) változót,
// megadja a hangjegyek neveit és a nekik megfelelő hosszúságú időtartamot,
// ameddig majd kapják a szögletes hullám MAGAS értékét.
void szolaHangjegyHangja(char hangjegy, int idotartam) {
  char hangjegynevek[] = { 'c', 'd', 'e', 'f', 'g', 'a', 'h', 'C' };
  int hangok[] = { 1915, 1700, 1519, 1432, 1275, 1136, 1014, 956 };

  // lejátssza a hangjegy nevének megfelelő hangot
  for (int i = 0; i < 8; i++) {
    // ha a hangjegyeknevek sorozatból az egyik elem
    // megfelel a hangjegy változó pillanatnyi értékének
    if (hangjegynevek[i] == hangjegy) {
      // akkor hívja a szolaHang függvényt a következő változókkal
      // hangok és időtartam; itt a hangok[i] értéke
      // lesz a hang változó értéke a szolaHang függvény számára
      szolaHang(hangok[i], idotartam);
   }
  }
}

****** Beállítások
// a digitális 9-ik tű kimenetre van beállítva
void setup() {
  pinMode(hangszoroTu, OUTPUT);
}

****** Hurok rész
// ezt ismételgeti, míg le nem játszotta
// a dallam összes hangját
void loop() {
  // amíg az i változó értéke nem lesz 28, addig ismétli
  // a lenti parancsokat, vagyis lejátssza egyenként
  // a dallam hangjait
  for (int i = 0; i < ahangjegyekszama; i++) {
    // ha a hangjegysor eleme szóköz,
    if (hangjegysor[i] == ' ') {
      // akkor szünet lesz egy darabig
      delay(hanghossza[i] * sebesseg); // ez a szünet
    } else {
      // máskülönben megszólal egy hang a hangjegysorból
      // hívjuk a szolaHangjegyHangja függvényt, megadva neki a
      // a hangjegysor egyik elemét, a hang hosszát szorozva a sebességgel
      szolaHangjegyHangja(hangjegysor[i], hanghossza[i] * sebesseg);
    }

    // szünet a dallam hangjai között
    delay(sebesseg / 2);
  }
}

***** A program működése



[-- Attachment #3: Type: text/plain, Size: 22 bytes --]


-- 
Regards from Pal

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2012-07-10 17:00 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-08 18:40 Exporting to FreeMind - opened in FreeMind failed Csanyi Pal
2012-07-09 13:24 ` Bastien
2012-07-09 13:28   ` Lennart Borgman
2012-07-09 13:40     ` Csanyi Pal
2012-07-09 13:37   ` Csanyi Pal
2012-07-09 13:42     ` Bastien
2012-07-09 13:43       ` Csanyi Pal
2012-07-09 13:53         ` Bastien
2012-07-09 14:13           ` Csanyi Pal
2012-07-09 14:34             ` Bastien
2012-07-09 14:55               ` Csanyi Pal
2012-07-09 15:23                 ` Nick Dokos
2012-07-09 15:55                   ` Csanyi Pal
2012-07-09 16:22                     ` Nick Dokos
2012-07-09 16:46                       ` Csanyi Pal
2012-07-10 15:41                         ` Manish
2012-07-10 16:52                           ` Csanyi Pal
2012-07-10 16:55                             ` Csanyi Pal
2012-07-09 14:35             ` Csanyi Pal

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).