# ETC custom text use

**URL:** <https://forum.critterandguitari.com/t/etc-custom-text-use/3690>\
**Category:** ETC\
**Created:** [January 7, 2019, 9:52pm UTC](https://forum.critterandguitari.com/t/etc-custom-text-use/3690 "2019-01-07T21:52:09Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkazaklis](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@gkazaklis](https://forum.critterandguitari.com/u/gkazaklis)\
**Post date:** [January 7, 2019, 9:52pm UTC](https://forum.critterandguitari.com/t/etc-custom-text-use/3690/1 "2019-01-07T21:52:09Z")

</div>

Hello,

I am looking at using the ETC for live custom text animation.  
currently using the mode: Spanish flash cards.  
I have edited the text in quotes…

I get this error.

does anyone know how to fix this?

also: got any sweet text/word modes to share?  
thanks

kaz

 ![unnamed](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/2X/6/6de91030671a38b49d07628ec6facb7790cd39f1.jpeg)

---

<div class="post-metadata">

**Author:** ![chrisk](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/chrisk/32/11_2.png) [@chrisk](https://forum.critterandguitari.com/u/chrisk)\
**Post date:** [January 7, 2019, 10:01pm UTC](https://forum.critterandguitari.com/t/etc-custom-text-use/3690/2 "2019-01-07T22:01:02Z")

</div>

Hi -

It looks like that error is ultimately coming from the ‘spanish.py’ file (though it is occurring as ‘main.py’ is run). Can you post a screenshot of or copy the contents of spanish.py? It should like:

> words = [[u"a partir de", u"from, as of"],  
> [u"a través de", u"through, across"],  
> [u"a", u"a, to"],  
> [u"abajo", u"down, below, downstairs"],  
> [u"abandonar", u"to abandon"],

Did you change the ‘main.py’ file at all?

---

<div class="post-metadata">

**Author:** ![gkazaklis](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@gkazaklis](https://forum.critterandguitari.com/u/gkazaklis)\
**Post date:** [January 8, 2019, 2:33pm UTC](https://forum.critterandguitari.com/t/etc-custom-text-use/3690/3 "2019-01-08T14:33:12Z")

</div>

I only changed the Spanish.py file  
 ![Screen Shot 2019-01-08 at 9.32.09 AM.png](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/2X/9/9cdc01913e902198f37c4e459d9027dbecb905c5.png)

---

<div class="post-metadata">

**Author:** ![gkazaklis](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@gkazaklis](https://forum.critterandguitari.com/u/gkazaklis)\
**Post date:** [January 14, 2019, 4:10pm UTC](https://forum.critterandguitari.com/t/etc-custom-text-use/3690/4 "2019-01-14T16:10:03Z")

</div>

I did not change the “main.py” file…

---

<div class="post-metadata">

**Author:** ![thetechnobear](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/thetechnobear/32/42_2.png) [@thetechnobear](https://forum.critterandguitari.com/u/thetechnobear)\
**Post date:** [January 14, 2019, 7:39pm UTC](https://forum.critterandguitari.com/t/etc-custom-text-use/3690/5 "2019-01-14T19:39:25Z")

</div>

perhaps the best thing is to zip up the mode and post it on dropbox, so that others can test it…

---

<div class="post-metadata">

**Author:** ![gkazaklis](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@gkazaklis](https://forum.critterandguitari.com/u/gkazaklis)\
**Post date:** [January 14, 2019, 8:00pm UTC](https://forum.critterandguitari.com/t/etc-custom-text-use/3690/6 "2019-01-14T20:00:30Z")

</div>

here is the zip’d file.  
hopefully it work.

thanks,  
George

> **[T - words Flash Cards.zip](https://www.dropbox.com/s/zxiawfyax6j18zz/T%20-%20words%20Flash%20Cards.zip?dl=0)**
>
> Shared with Dropbox

---

<div class="post-metadata">

**Author:** ![chrisk](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/chrisk/32/11_2.png) [@chrisk](https://forum.critterandguitari.com/u/chrisk)\
**Post date:** [January 14, 2019, 10:31pm UTC](https://forum.critterandguitari.com/t/etc-custom-text-use/3690/7 "2019-01-14T22:31:14Z")

</div>

Hi @gkazaklis,

Sorry for the delay - working on this now. Get back to you soon!

---

<div class="post-metadata">

**Author:** ![chrisk](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/chrisk/32/11_2.png) [@chrisk](https://forum.critterandguitari.com/u/chrisk)\
**Post date:** [January 15, 2019, 5:39pm UTC](https://forum.critterandguitari.com/t/etc-custom-text-use/3690/8 "2019-01-15T17:39:00Z")

</div>

@gkazaklis

Please try this new version of the flash card mode: [https://patchstorage.com/1-new-flash-cards/](https://patchstorage.com/1-new-flash-cards/)  
Download, unzip and copy to your ETC’s Mode folder.

I updated the code in the _main.py_ file. You should be able to edit the _flashcards.py_ as discussed before.

Let me know how it goes!

---

<div class="post-metadata">

**Author:** ![gkazaklis](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@gkazaklis](https://forum.critterandguitari.com/u/gkazaklis)\
**Post date:** [January 17, 2019, 3:35pm UTC](https://forum.critterandguitari.com/t/etc-custom-text-use/3690/9 "2019-01-17T15:35:18Z")

</div>

thank you so much…

I will ask on the post and to you.

could be simple.

to change the font… do I just drag a new font in?

geo

---

<div class="post-metadata">

**Author:** ![fanwander](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/fanwander/32/5076_2.png) [@fanwander](https://forum.critterandguitari.com/u/fanwander)\
**Post date:** [January 17, 2019, 4:57pm UTC](https://forum.critterandguitari.com/t/etc-custom-text-use/3690/10 "2019-01-17T16:57:54Z")

</div>

Hi

> [@gkazaklis](#):
>
> to change the font… do I just drag a new font in

The font is defined in the line 30 of the mode 1-new-flash-cards:  
` font = pygame.freetype.Font(etc.mode_root + "/font.ttf", size)`  
You have to place the \*.ttf file of your font in the modes directory then then change the file name in line 30

Florian

---

<div class="post-metadata">

**Author:** ![chrisk](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/chrisk/32/11_2.png) [@chrisk](https://forum.critterandguitari.com/u/chrisk)\
**Post date:** [January 17, 2019, 5:34pm UTC](https://forum.critterandguitari.com/t/etc-custom-text-use/3690/11 "2019-01-17T17:34:17Z")

</div>

> [@fanwander](#):
>
> The font is defined in the line 30 of the mode 1-new-flash-cards:  
> `font = pygame.freetype.Font(etc.mode_root + "/font.ttf", size)`  
> You have to place the \*.ttf file of your font in the modes directory then then change the file name in line 30

…you could also just rename the \*.ttf file to ‘font.ttf’ so you wouldn’t have to modify the code…

---

<div class="post-metadata">

**Author:** ![gkazaklis](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@gkazaklis](https://forum.critterandguitari.com/u/gkazaklis)\
**Post date:** [January 17, 2019, 9:50pm UTC](https://forum.critterandguitari.com/t/etc-custom-text-use/3690/12 "2019-01-17T21:50:59Z")

</div>

Got it!!!

Thanks
