Re: forms and org-mode
Tim Cross writes: > Transient on the other hand is a UI library for getting user input where > the options are a little too complex/large for the more common input > methods - for example, it could be a good candidate for the export > 'menu'. which I find can be very frustrating on a smaller screen when > you have lots of defined export back-ends. I agree. Other good candidates are org-agenda dispatcher and org-attach dispatcher. Best, Ihor
Re: forms and org-mode
Ihor Radchenko writes: > Greg Minshall writes: > >> wasn't there also some talk a while back about whatever form'ish >> technology "magit" uses? my sense was it provides something similar to >> Emacs forms. > > To clarify, I am not aware about Emacs forms (unless you refer to > widgets used in customize interface). Magit uses transient which is one > of the possible completion interfaces in Emacs. > Yes, Emacs Forms is part of Emacs and provides an interface for collecting data - either it is based on Emacs widgets or something very similar. Very much like old 'form' data entry interfaces we use to see on terminals in the 80s. A bit like ncurses with a little 'window' decoration. Transient on the other hand is a UI library for getting user input where the options are a little too complex/large for the more common input methods - for example, it could be a good candidate for the export 'menu'. which I find can be very frustrating on a smaller screen when you have lots of defined export back-ends.
Re: forms and org-mode
Greg Minshall writes: > wasn't there also some talk a while back about whatever form'ish > technology "magit" uses? my sense was it provides something similar to > Emacs forms. To clarify, I am not aware about Emacs forms (unless you refer to widgets used in customize interface). Magit uses transient which is one of the possible completion interfaces in Emacs. Best, Ihor
Re: forms and org-mode
Ihor, > A possible alternative to forms could be using custom capture templates > for table lines. You can restrict the captured information to a specific > list or a function (like org-read-date). wasn't there also some talk a while back about whatever form'ish technology "magit" uses? my sense was it provides something similar to Emacs forms. cheers, Greg
Re: forms and org-mode
Jude DaShiell writes: > Interesting, thanks for your response. I keep tables in their own files, > one table per file to minimize complexity. A possible alternative to forms could be using custom capture templates for table lines. You can restrict the captured information to a specific list or a function (like org-read-date). Best, Ihor
Re: forms and org-mode
Interesting, thanks for your response. I keep tables in their own files, one table per file to minimize complexity. On Sat, 21 Aug 2021, Tim Cross wrote: > > OK, but I'm still a little unclear exactly what you are asking about. > > If it is just a general question about whether Emacs Forms could be used > for data input into an org table, the basic answer is yes, I think so. > > If your asking if anyone has done this - not that I'm aware of. > > If your asking how hard it would be to do, well that depends. > > The biggest challenge I can see is that Emacs forms expects a data file > which just consists of one record per line where each record is > separated by a specific character. That part is not too hard. However, > where things might get tricky is if you want to keep the data in an org > file with other org data. > > I imagine you could maintain a table in a data file fairly easily. You > can use the org '|' as the field separators and you would likely need to > write an input and output filter function to remove white space and add > it back on writing. None of this would be too hard. > > However, if you wanted an emacs forms interface to one or more tables > inside a normal org file, it might be more tricky. You would need a far > more sophisticated input/output filters and possibly need to narrow the > file or do something else to help the filter functions target the data. > > It has been many years since I used Emacs Forms. From memory, I gave up > on them as the level of maintenance exceeded the usefulness. I guess it > all really depends on how much data you need to edit and how predictable > the target data files are. > > . > Jude DaShiell writes: > > > My reason for using forms to do data input into org tables is to minimize > > errors in the data input to the org tables. > > > > On Sat, 21 Aug 2021, Tim Cross wrote: > > > >> > >> So you are asking about using Emacs forms for data input into an org > >> table? > >> > >> Just not clear on what exactly your asking about. > >> > >> Jude DaShiell writes: > >> > >> > A table with a time stamp column, a text column for notes and an interval > >> > column rounded to nearest hour. Any statistics to be calculated on that > >> > intervals column. > >> > > >> > > >> > On Sat, 21 Aug 2021, Ihor Radchenko wrote: > >> > > >> >> Can you elaborate? > >> >> > >> >> > >> > >> > >> > > >
Re: forms and org-mode
OK, but I'm still a little unclear exactly what you are asking about. If it is just a general question about whether Emacs Forms could be used for data input into an org table, the basic answer is yes, I think so. If your asking if anyone has done this - not that I'm aware of. If your asking how hard it would be to do, well that depends. The biggest challenge I can see is that Emacs forms expects a data file which just consists of one record per line where each record is separated by a specific character. That part is not too hard. However, where things might get tricky is if you want to keep the data in an org file with other org data. I imagine you could maintain a table in a data file fairly easily. You can use the org '|' as the field separators and you would likely need to write an input and output filter function to remove white space and add it back on writing. None of this would be too hard. However, if you wanted an emacs forms interface to one or more tables inside a normal org file, it might be more tricky. You would need a far more sophisticated input/output filters and possibly need to narrow the file or do something else to help the filter functions target the data. It has been many years since I used Emacs Forms. From memory, I gave up on them as the level of maintenance exceeded the usefulness. I guess it all really depends on how much data you need to edit and how predictable the target data files are. . Jude DaShiell writes: > My reason for using forms to do data input into org tables is to minimize > errors in the data input to the org tables. > > On Sat, 21 Aug 2021, Tim Cross wrote: > >> >> So you are asking about using Emacs forms for data input into an org >> table? >> >> Just not clear on what exactly your asking about. >> >> Jude DaShiell writes: >> >> > A table with a time stamp column, a text column for notes and an interval >> > column rounded to nearest hour. Any statistics to be calculated on that >> > intervals column. >> > >> > >> > On Sat, 21 Aug 2021, Ihor Radchenko wrote: >> > >> >> Can you elaborate? >> >> >> >> >> >> >>
Re: forms and org-mode
My reason for using forms to do data input into org tables is to minimize errors in the data input to the org tables. On Sat, 21 Aug 2021, Tim Cross wrote: > > So you are asking about using Emacs forms for data input into an org > table? > > Just not clear on what exactly your asking about. > > Jude DaShiell writes: > > > A table with a time stamp column, a text column for notes and an interval > > column rounded to nearest hour. Any statistics to be calculated on that > > intervals column. > > > > > > On Sat, 21 Aug 2021, Ihor Radchenko wrote: > > > >> Can you elaborate? > >> > >> > > >
Re: forms and org-mode
So you are asking about using Emacs forms for data input into an org table? Just not clear on what exactly your asking about. Jude DaShiell writes: > A table with a time stamp column, a text column for notes and an interval > column rounded to nearest hour. Any statistics to be calculated on that > intervals column. > > > On Sat, 21 Aug 2021, Ihor Radchenko wrote: > >> Can you elaborate? >> >>
Re: forms and org-mode
Jude DaShiell writes: > A table with a time stamp column, a text column for notes and an interval > column rounded to nearest hour. Any statistics to be calculated on that > intervals column. I am still not sure if I understand you clearly. Does clocktable do what you want? Best, Ihor
Re: forms and org-mode
A table with a time stamp column, a text column for notes and an interval column rounded to nearest hour. Any statistics to be calculated on that intervals column. On Sat, 21 Aug 2021, Ihor Radchenko wrote: > Can you elaborate? > >
Re: forms and org-mode
Can you elaborate?
forms and org-mode
Would it even be useful to write a set of forms files and use those to populate an org-mode table?
Re: [O] Generate and fill PDF-forms by org-mode?!
Hi Torsten, ยท On Aug 15 2013, Torsten Wagner torsten.wag...@gmail.com wrote: [How to fill in a form from org?] I have only one form to fill in, print it, sign it and hand it in. But this one is very boring :-(. The form is available as pdf or dot. Here is how I do it. When I was on Windows I used XL and word with a VBA macro. Now I switched to Linux. I use org and LibreOffice. I have all the information gathered in an org-table. A babel elisp block extracts the information from this table. To fill in the form I use =xte= which is part of the xautomation package [1]. =xte= is a commandline tool which emulates key strokes and sends them to the active window. I open the form (dot) in LibreOffice and execute the babel block. The items to fill in the form are extracted from org-table and sent to =xte= via `call-process-shell-command'. This might not be the best way, but for me it works. I also tried to use the pdf form in the same way. But it did not work well. Neither in Adobe Reader nor in evince. [1] http://sourceforge.net/projects/xautomation/ -- Bis neulich ... Thomas
[O] Generate and fill PDF-forms by org-mode?!
Hi, recently (well not so recently unfortunately) I have to deal with a lot of forms. forms forms forms... always almost the same, always almost boring. I was wondering, can I teach org-mode to do this for me? Ideally, I will use a org-table or org-properties, and execute e.g. a babel src-code block which in turn will take all this properties and fill it into a certain form and generate a PDF, send it to printer to let it me sign and hand it over. Hence I could keep all the important infos of a task in org-mode and automatically generate necessary forms as requires. E.g. lets take a order-form I could keep company address, items, price, amount, as well as internal project numbers, etc. in a single org-node or possibly take it from different org-tables, org-nodes, org-files, etc. and compose a form with all this data. If the delivery address change, I only have to change it once and the next forms will automatically contain the new address. Did someone try something like this already. Ideally, a ODT-export would be nice too, but I guess even harder to achieve. Another problem I might have to deal with, is how flexible is the administration. They might require to use only there templates (doc and PDF forms). However, the PDF forms are owner secured and hence I do not have a way to extract the FDF infos to interact in some way with them. Does someone know how to fill a PDF form programmatically and if this could be done within org-mode? Any idea how to deal with that would be nice. All the best Torsten