all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how to export file containing tables to tab separated txt?
@ 2008-07-12 17:53 Csányi Pál
  0 siblings, 0 replies; only message in thread
From: Csányi Pál @ 2008-07-12 17:53 UTC (permalink / raw)
  To: help-gnu-emacs

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

Hello!

I have GNU Emacs 22.1.1 (i486-pc-linux-gnu, GTK+ Version 2.8.20)
of 2008-06-23 installed on Debian GNU/Linux Etch.

I have a small job to do.

From a text file I must with some application, but I wish that that
this application be Emacs, edit the file so that it contains tables
amongst some text. 

Example:

-----------
text

table1

text

table2

etc.
-----------

After I edited this text file and fill table cells with some
additional data, I must to export this file to tab separated text
file. Tab separated should be only datas from cells in a row, and
not the other text outside of tables.

Then can I run a script that should convert this file in to an
electric symbol in gEDA.

I try to use Org-mode but in Org-mode one can to export only one table
to one tab separated tex file and not the whole file with many
tables. 

I try out ses-mode but there isn't a documentation how to use it.

Can I do this job in Emacs? How can I do that in Emacs?

One can to ask why is this job so complex? Why can't one just edit the
source file and add additional data editing this file and adding Tabs
to the right places? The answer is that that data can much easily
manage in a table.

Here is the file in attachment.


[-- Attachment #2: The source text file --]
[-- Type: application/octet-stream, Size: 1841 bytes --]

# This is the template file for creating symbols with tragesym
# every line starting with '#' is a comment line.

[options]
# wordswap swaps labels if the pin is on the right side an looks like
# this: 
#   "PB1 (CLK)". That's useful for micro controller port labels
# rotate_labels rotates the pintext of top and bottom pins
#   this is useful for large symbols like FPGAs with more than 100 pins
# sort_labels will sort the pins by it's labels
#   useful for address ports, busses, ...
wordswap	yes
rotate_labels	no
sort_labels	yes
generate_pinseq	yes
sym_width	1400
pinwidthvertical	400
pinwidthhorizontal	400

[geda_attr]
# name will be printed in the top of the symbol
# if you have a device with slots, you'll have to use slot= and
# slotdef= 
# use comment= if there are special information you want to add
version	0 1
name	
device	
refdes	U?
footprint	
description	
documentation	
author	Paul Csanyi
numslots	0
#slot	1
#slotdef	1:
#slotdef	2:
#slotdef	3:
#slotdef	4:
#comment	
#comment	
#comment	

[pins]
# tabseparated list of pin descriptions
# ----------------------------------------

# pinnr is the physical number of the pin

# seq is the pinseq= attribute, leave it blank if it doesn't matter 

# type can be (in, out, io, oc, oe, pas, tp, tri, clk, pwr) 

# style can be (line,dot,clk,dotclk,none). none if only want to add a 
# net 

# posit. can be (l,r,t,b) or empty for nets

# net specifies the name of the net. Vcc or GND for example.

# label represents the pinlabel.
#	negation lines can be added with "\_" example: \_enable\_  
#	if you want to write a "\" use "\\" as escape sequence 

#-----------------------------------------------------

pinnr	seq	type	style	posit.	net	label
1						
2						
3						
4						
5						
6						
7						
8						
9						
10						
11						
12						
13						
14						
15						
16						

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


Any advices will be appreciated!

-- 
Regards, Paul Csanyi
http://www.freewebs.com/csanyi-pal/index.htm

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-12 17:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-12 17:53 how to export file containing tables to tab separated txt? Csányi Pál

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.